From 9ca1de76b28b2c49d53d560f80f6fb037fa815d9 Mon Sep 17 00:00:00 2001 From: Laurent Laffont <llaffont@afi-sa.fr> Date: Fri, 22 Sep 2017 10:32:02 +0200 Subject: [PATCH] dev #39361 test fix --- .../modules/admin/controllers/WidgetControllerTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/application/modules/admin/controllers/WidgetControllerTest.php b/tests/application/modules/admin/controllers/WidgetControllerTest.php index 152bd343442..483993042a5 100644 --- a/tests/application/modules/admin/controllers/WidgetControllerTest.php +++ b/tests/application/modules/admin/controllers/WidgetControllerTest.php @@ -458,19 +458,19 @@ class WidgetControllerArticlesDispatchTest extends WidgetControllerDispatchWidge /** @test */ public function selectShouldContainsSlideShow() { - $this->assertXPathContentContains('//select/optgroup[@label="Objets java-script"]/option', 'Diaporama avec navigation'); + $this->assertXPathContentContains('//select/option', 'Diaporama avec navigation'); } /** @test */ public function selectShouldContainsAcordionList() { - $this->assertXPathContentContains('//select/optgroup[@label="Objets java-script"]/option', 'Liste en accordéon', $this->_response->getBody()); + $this->assertXPathContentContains('//select/option', 'Liste en accordéon', $this->_response->getBody()); } /** @test */ public function diaporamaNavigationShouldBeSelected() { - $this->assertXPathContentContains('//select/optgroup[@label="Objets java-script"]/option[@value="diaporama_navigation"][@selected="selected"]', 'Diaporama avec navigation', $this->_response->getBody()); + $this->assertXPathContentContains('//select/option[@value="diaporama_navigation"][@selected="selected"]', 'Diaporama avec navigation', $this->_response->getBody()); } -- GitLab