]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Fixed tests 3541/head
authorNicolas Lœuillet <nicolas@loeuillet.org>
Fri, 12 Jan 2018 09:37:13 +0000 (10:37 +0100)
committerNicolas Lœuillet <nicolas@loeuillet.org>
Fri, 12 Jan 2018 10:19:11 +0000 (11:19 +0100)
tests/Wallabag/ApiBundle/Controller/DeveloperControllerTest.php
tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php
tests/Wallabag/ImportBundle/Controller/PocketControllerTest.php

index e9e5ee3b1fc575ba9ceca4476e239c8b983c2a10..35de47f94c387a6f0c8565c9ed9c3e408227d3ab 100644 (file)
@@ -17,7 +17,7 @@ class DeveloperControllerTest extends WallabagCoreTestCase
         $crawler = $client->request('GET', '/developer/client/create');
         $this->assertSame(200, $client->getResponse()->getStatusCode());
 
-        $form = $crawler->filter('button[type=submit]')->form();
+        $form = $crawler->filter('button[id=client_save]')->form();
 
         $data = [
             'client[name]' => 'My app',
index e424f152c40630616509c219c690ef8e9cdf0bd7..12788366d5ce0799e2f7e3dd39c05db9382c5afc 100644 (file)
@@ -476,7 +476,7 @@ class EntryControllerTest extends WallabagCoreTestCase
 
         $this->assertSame(200, $client->getResponse()->getStatusCode());
 
-        $form = $crawler->filter('button[type=submit]')->form();
+        $form = $crawler->filter('button[id=entry_save]')->form();
 
         $data = [
             'entry[title]' => 'My updated title hehe :)',
@@ -509,7 +509,7 @@ class EntryControllerTest extends WallabagCoreTestCase
 
         $this->assertSame(200, $client->getResponse()->getStatusCode());
 
-        $form = $crawler->filter('button[type=submit]')->form();
+        $form = $crawler->filter('button[id=entry_save]')->form();
 
         $data = [
             'entry[title]' => 'My updated title hehe :)',
index 17ce1a2adbf7941b4f7097288eba9fe809578827..01dd2451f7ac31d7a1a8e63fba06c18aeff45dda 100644 (file)
@@ -14,7 +14,7 @@ class PocketControllerTest extends WallabagCoreTestCase
         $crawler = $client->request('GET', '/import/pocket');
 
         $this->assertSame(200, $client->getResponse()->getStatusCode());
-        $this->assertSame(1, $crawler->filter('button[type=submit]')->count());
+        $this->assertSame(1, $crawler->filter('button[name=action]')->count());
     }
 
     public function testImportPocketWithRabbitEnabled()
@@ -27,7 +27,7 @@ class PocketControllerTest extends WallabagCoreTestCase
         $crawler = $client->request('GET', '/import/pocket');
 
         $this->assertSame(200, $client->getResponse()->getStatusCode());
-        $this->assertSame(1, $crawler->filter('button[type=submit]')->count());
+        $this->assertSame(1, $crawler->filter('button[name=action]')->count());
 
         $client->getContainer()->get('craue_config')->set('import_with_rabbitmq', 0);
     }
@@ -43,7 +43,7 @@ class PocketControllerTest extends WallabagCoreTestCase
         $crawler = $client->request('GET', '/import/pocket');
 
         $this->assertSame(200, $client->getResponse()->getStatusCode());
-        $this->assertSame(1, $crawler->filter('button[type=submit]')->count());
+        $this->assertSame(1, $crawler->filter('button[name=action]')->count());
 
         $client->getContainer()->get('craue_config')->set('import_with_redis', 0);
     }