diff --git a/VERSIONS_HOTLINE/121343 b/VERSIONS_HOTLINE/121343 new file mode 100644 index 0000000000000000000000000000000000000000..4086217139b8b6474799a63b92fb91a4ef6830e4 --- /dev/null +++ b/VERSIONS_HOTLINE/121343 @@ -0,0 +1 @@ + - ticket #121343 : Magasin de thèmes / thème Chili : nouveau rendu du compte lecteur \ No newline at end of file diff --git a/library/Class/Template.php b/library/Class/Template.php index 0ff8e0c76b643aa339cd95d1f40fe1d7c697ba93..e69967f90cd5a22218d79c45da3d5e7f973e6835 100644 --- a/library/Class/Template.php +++ b/library/Class/Template.php @@ -325,6 +325,11 @@ class Class_Template { } + public function customUserRichContents($sections) { + return $sections; + } + + public function handleRecordView() { return false; } diff --git a/library/templates/Chili/Assets/css/chili.css b/library/templates/Chili/Assets/css/chili.css index e0e9b1ad7fa53e439c3597006005bf693b20aba6..f400db5f0ec4b9d7b976c4d5c82ffe67b097ca12 100644 --- a/library/templates/Chili/Assets/css/chili.css +++ b/library/templates/Chili/Assets/css/chili.css @@ -944,3 +944,74 @@ main .chili_widget { .boite.menu.chili_fixed_top .navbar-collapse .navbar-collapse .dropdown-menu { position: absolute; } + +.big_button { + font-size: 50px; +} + +.big_buttons .card_footer { + display: none !important; +} + +.big_buttons .card_title { + text-align: center; + text-transform: uppercase; +} + +.big_buttons .card_body_Chili_Library_Wrapper_RichContentThumbnail { + position: absolute; +} + +.big_buttons .big_button { + color: var(--chili-red-t); +} + +.big_buttons .masonry-content > .card { + height: 200px; + overflow: hidden; +} + +.big_buttons .masonry_grid { + gap: 10px; +} + +.big_buttons.chili_widget .card-img { + height: auto; +} + +.big_buttons.chili_widget .card-link { + padding: 30px 30px 0 30px; + display: block; +} + +.big_buttons.chili_widget .card { + padding: 0; +} + +.big_buttons.chili_widget .card-subtitle { + display: block; +} + +.big_buttons .card-header { + border: 0px; +} + +.big_buttons .card_title, +.big_buttons .card_title > a { + height: 100%; + margin: 0 !important; +} + +.big_buttons .card_title > a { + display: block; + padding: 10px; +} + +.big_buttons .card_body { + padding: 0; +} + +.big_buttons .card_template:hover a { + background-color: var(--chili-lblack-bg); + color: var(--chili-white-t) !important; +} diff --git a/library/templates/Chili/Library/Settings.php b/library/templates/Chili/Library/Settings.php index 43662d86a5b563015fab143b9e844a701c39801a..06c2c68baaf18a45902e3d73edc9f4e66bd9d546 100644 --- a/library/templates/Chili/Library/Settings.php +++ b/library/templates/Chili/Library/Settings.php @@ -93,6 +93,9 @@ class Chili_Library_Settings extends Intonation_Library_Settings { $hydrating_mapping['div class top_carousel_columns'] = 'col-12'; $hydrating_mapping['div class card_with_overlay'] = 'card'; $hydrating_mapping['div class card_overlay'] = 'card-block card-img-overlay rounded text-white'; + $hydrating_mapping['div class big_buttons'] = 'chili_widget col-10 col-xl-9'; + $hydrating_mapping['div class big_buttons_sm'] = 'd-block d-lg-none'; + $hydrating_mapping['div class big_buttons_lg'] = 'd-none d-lg-block'; $settings[$this->_template->withNameSpace('hydrating_mapping')] = $hydrating_mapping; return $settings; diff --git a/library/templates/Chili/Library/Wrapper/RichContentSection.php b/library/templates/Chili/Library/Wrapper/RichContentSection.php new file mode 100644 index 0000000000000000000000000000000000000000..3ea3d6be5312c57e1c88f9b820c8b23637a83f3b --- /dev/null +++ b/library/templates/Chili/Library/Wrapper/RichContentSection.php @@ -0,0 +1,67 @@ +<?php +/** + * Copyright (c) 2012-2020, Agence Française Informatique (AFI). All rights reserved. + * + * BOKEH is free software; you can redistribute it and/or modify + * it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE as published by + * the Free Software Foundation. + * + * There are special exceptions to the terms and conditions of the AGPL as it + * is applied to this software (see README file). + * + * BOKEH is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU AFFERO GENERAL PUBLIC LICENSE for more details. + * + * You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE + * along with BOKEH; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + + +class Chili_Library_Wrapper_RichContentSection extends Intonation_Library_View_Wrapper_Abstract { + public function getMainTitle(){ + return $this->_model->getDBTitle(); + } + + public function getMainLink(){ + return new Intonation_Library_Link(['Url' => $this->_model->getNavUrl(), + 'Text' => $this->getMainTitle(), + 'Title' => $this->_model->getDBNavTitle()]); + } + + public function getEmbedMedia(){} + + public function getHtmlPicture() { + $image = Class_Template::current()->getIco($this->_view, + $this->_model->getDBNavIco(), + '', + ['class' => 'big_button']); + return $this->_view->tagAction($this->getMainLink() + ->setText('') + ->setImage($image)); + } + + public function getPicture() {} + public function getPictureAction(){} + + public function getSecondaryTitle(){} + public function getSecondaryLink(){} + public function getSecondaryIco(){} + + public function getActions() { + return []; + } + + public function getDescription(){} + public function getFullDescription(){} + public function getDescriptionTitle(){} + + public function getBadges(){} + + public function getDocType(){} + public function getDocTypeLabel(){} + + public function getOsmData(){} +} diff --git a/library/templates/Chili/Library/Wrapper/RichContentThumbnail.php b/library/templates/Chili/Library/Wrapper/RichContentThumbnail.php new file mode 100644 index 0000000000000000000000000000000000000000..2cf32723ac7541dbe3a9cc8ef5fe1f701ac0ca11 --- /dev/null +++ b/library/templates/Chili/Library/Wrapper/RichContentThumbnail.php @@ -0,0 +1,73 @@ +<?php +/** + * Copyright (c) 2012-2020, Agence Française Informatique (AFI). All rights reserved. + * + * BOKEH is free software; you can redistribute it and/or modify + * it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE as published by + * the Free Software Foundation. + * + * There are special exceptions to the terms and conditions of the AGPL as it + * is applied to this software (see README file). + * + * BOKEH is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU AFFERO GENERAL PUBLIC LICENSE for more details. + * + * You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE + * along with BOKEH; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + + +class Chili_Library_Wrapper_RichContentThumbnail extends Intonation_Library_View_Wrapper_Abstract { + public function getMainTitle(){} + + public function getMainLink(){} + + public function getEmbedMedia(){} + + public function getHtmlPicture() { + + } + + public function getPicture() { + return (new Intonation_Library_View_Wrapper_User()) + ->setView($this->_view) + ->setModel($this->_model) + ->getPicture(); + } + + public function getPictureAction(){ + } + + public function getSecondaryTitle(){} + + + public function getSecondaryLink() { + return (new Intonation_Library_View_Wrapper_User()) + ->setView($this->_view) + ->setModel($this->_model) + ->getPictureAction(); + } + + + public function getSecondaryIco() { + } + + + public function getActions() { + return []; + } + + public function getDescription(){} + public function getFullDescription(){} + public function getDescriptionTitle(){} + + public function getBadges(){} + + public function getDocType(){} + public function getDocTypeLabel(){} + + public function getOsmData(){} +} diff --git a/library/templates/Chili/Library/Wrapper/User/RichContent/Home.php b/library/templates/Chili/Library/Wrapper/User/RichContent/Home.php new file mode 100644 index 0000000000000000000000000000000000000000..5bf18177a44af5d9b19af8f88349cbc23512041e --- /dev/null +++ b/library/templates/Chili/Library/Wrapper/User/RichContent/Home.php @@ -0,0 +1,32 @@ +<?php +/** + * Copyright (c) 2012-2020, Agence Française Informatique (AFI). All rights reserved. + * + * BOKEH is free software; you can redistribute it and/or modify + * it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE as published by + * the Free Software Foundation. + * + * There are special exceptions to the terms and conditions of the AGPL as it + * is applied to this software (see README file). + * + * BOKEH is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU AFFERO GENERAL PUBLIC LICENSE for more details. + * + * You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE + * along with BOKEH; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + + +class Chili_Library_Wrapper_User_RichContent_Home extends Intonation_Library_View_Wrapper_User_RichContent_Home { + public function getTitle() { + return $this->_('Mon compte'); + } + + + public function getNavIco() { + return 'class fas fa-user-circle'; + } +} diff --git a/library/templates/Chili/Template.php b/library/templates/Chili/Template.php index 674b341d9971e917e3522fadc6a76ce6d19ff80f..09be6464f2c8714e9d7bad89571d10ce9736bfa3 100644 --- a/library/templates/Chili/Template.php +++ b/library/templates/Chili/Template.php @@ -105,4 +105,11 @@ class Chili_Template extends Intonation_Template { $this->_widgets_cache[Intonation_Library_Widget_Login_Definition::CODE] = new Chili_Library_Widget_Login_Definition; return $this->_widgets_cache; } + + + public function customUserRichContents($sections) { + unset($sections[Intonation_Library_View_Wrapper_User_RichContent::HOME]); + array_unshift($sections, new Chili_Library_Wrapper_User_RichContent_Home()); + return $sections; + } } \ No newline at end of file diff --git a/library/templates/Chili/View/Abonne.php b/library/templates/Chili/View/Abonne.php new file mode 100644 index 0000000000000000000000000000000000000000..d4144e5c0d8e297449c16b3e2b34c7543c6d1791 --- /dev/null +++ b/library/templates/Chili/View/Abonne.php @@ -0,0 +1,97 @@ +<?php +/** + * Copyright (c) 2012-2019, Agence Française Informatique (AFI). All rights reserved. + * + * BOKEH is free software; you can redistribute it and/or modify + * it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE as published by + * the Free Software Foundation. + * + * There are special exceptions to the terms and conditions of the AGPL as it + * is applied to this software (see README file). + * + * BOKEH is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU AFFERO GENERAL PUBLIC LICENSE for more details. + * + * You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE + * along with BOKEH; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + + +class Chili_View_Abonne extends ZendAfi_View_Helper_BaseHelper { + public function abonne($user) { + $this->view->titre = $this->_('Mon compte'); + + $sections = $this->_getUserSections($user); + + $html = [$this->_renderTitle($user), + $this->_renderCarouselForSmallScreen($sections), + $this->_renderWallGridForBigScreen($sections)]; + + return $this->view->grid( + $this->_div(['class' => 'big_buttons'], + implode($html)), + [], + ['class' => 'justify-content-center']); + } + + + protected function _renderTitle($user) { + $wrapper = (new Intonation_Library_View_Wrapper_User) + ->setModel($user) + ->setView($this->view); + + return $this->_tag('h1', + $this->_('Bonjour %s !', + $wrapper->getMainTitle()), + ['class' => 'card-header widget-header']); + } + + + protected function _renderCarouselForSmallScreen($sections) { + $content = (new Intonation_View_RenderMultipleCarousel()) + ->setView($this->view) + ->setNumberOfColumns(3) + ->renderMultipleCarousel($sections, + [$this->view, 'cardify']); + + return $this->_div(['class' => 'big_buttons_sm'], + $content); + } + + + protected function _renderWallGridForBigScreen($sections) { + $content = $this->view->renderWallGrid($sections, + [$this->view, 'cardify']); + return $this->_div(['class' => 'big_buttons_lg'], + $content); + } + + + protected function _getUserSections($user) { + $sections = $this->_wrapUserSectionsWithChili($user); + $sections = $this->_injectThumbnailSectionIn($sections, $user); + + return new Storm_Collection($sections); + } + + + protected function _wrapUserSectionsWithChili($user) { + return array_map( function($section) + { + return new Chili_Library_Wrapper_RichContentSection($section, $this->view); + }, + (new Intonation_Library_View_Wrapper_User_RichContent($user, $this->view)) + ->getSections()); + } + + + protected function _injectThumbnailSectionIn($sections, $user) { + unset($sections[Intonation_Library_View_Wrapper_User_RichContent::HOME]); + array_unshift($sections, new Chili_Library_Wrapper_RichContentThumbnail($user, $this->view)); + + return $sections; + } +} diff --git a/library/templates/Intonation/Library/View/Wrapper/Abstract.php b/library/templates/Intonation/Library/View/Wrapper/Abstract.php index f7026a11d22cf11992bff836619fec0fd4484053..95a5c02481d328fafccbf797bb643db00be5750a 100644 --- a/library/templates/Intonation/Library/View/Wrapper/Abstract.php +++ b/library/templates/Intonation/Library/View/Wrapper/Abstract.php @@ -40,7 +40,11 @@ abstract class Intonation_Library_View_Wrapper_Abstract { } - public function __construct() { + public function __construct($model = null, $view = null) { + $this + ->setView($view) + ->setModel($model); + $this->_widget_context = new Intonation_Library_Widget_Carousel_NullContext; } @@ -165,4 +169,5 @@ abstract class Intonation_Library_View_Wrapper_Abstract { /** @return Intonation_Library_OsmData */ abstract public function getOsmData(); + } \ No newline at end of file diff --git a/library/templates/Intonation/Library/View/Wrapper/ReviewsByRecord.php b/library/templates/Intonation/Library/View/Wrapper/ReviewsByRecord.php index ae62964d5bcfc7ac7132af815cb3762418695e0f..0e2e5899cfd43c4ebb97158ff97a7c501bc8638f 100644 --- a/library/templates/Intonation/Library/View/Wrapper/ReviewsByRecord.php +++ b/library/templates/Intonation/Library/View/Wrapper/ReviewsByRecord.php @@ -26,6 +26,9 @@ class Intonation_Library_View_Wrapper_ReviewsByRecord extends Intonation_Library $_reviews = []; public function setModel($model) { + if ( ! $model) + return parent::setModel($model); + $this->_record = (new Intonation_Library_View_Wrapper_Record()) ->setView($this->_view) ->setModel($model->getRecord()); diff --git a/library/templates/Intonation/Library/View/Wrapper/RichContent/Abstract.php b/library/templates/Intonation/Library/View/Wrapper/RichContent/Abstract.php index 5181033a6428eaae3d9d44e76e1d8fecc744825f..905370e73d3d217d0aea9d5122f2f954552518de 100644 --- a/library/templates/Intonation/Library/View/Wrapper/RichContent/Abstract.php +++ b/library/templates/Intonation/Library/View/Wrapper/RichContent/Abstract.php @@ -30,6 +30,13 @@ abstract class Intonation_Library_View_Wrapper_RichContent_Abstract { $_sections; + public function __construct($model = null , $view = null) { + $this + ->setModel($model) + ->setView($view); + } + + public function setView($view) { $this->_view = $view; return $this; diff --git a/library/templates/Intonation/Library/View/Wrapper/RichContent/Section.php b/library/templates/Intonation/Library/View/Wrapper/RichContent/Section.php index b54914bfd69836f1124c58bc3160e412ce16f44e..7b5043ff3d82373f218b2e3f40c6eecb0ab72ebb 100644 --- a/library/templates/Intonation/Library/View/Wrapper/RichContent/Section.php +++ b/library/templates/Intonation/Library/View/Wrapper/RichContent/Section.php @@ -34,6 +34,13 @@ abstract class Intonation_Library_View_Wrapper_RichContent_Section { $_is_active = false; + public function __construct($model = null , $view = null) { + $this + ->setModel($model) + ->setView($view); + } + + public function setView($view) { $this->_view = $view; return $this; diff --git a/library/templates/Intonation/Library/View/Wrapper/User/RichContent.php b/library/templates/Intonation/Library/View/Wrapper/User/RichContent.php index 4b8c52c7eef56021d718cf76db29f3c58c374be5..3f610756f07f80a7f19d53d31c25edfec91ee922 100644 --- a/library/templates/Intonation/Library/View/Wrapper/User/RichContent.php +++ b/library/templates/Intonation/Library/View/Wrapper/User/RichContent.php @@ -50,23 +50,25 @@ class Intonation_Library_View_Wrapper_User_RichContent extends Intonation_Librar protected function _getSectionsInstances() { - return [Intonation_Library_View_Wrapper_User_RichContent::HOME => new Intonation_Library_View_Wrapper_User_RichContent_Home, + return Class_Template::current() + ->customUserRichContents( + [Intonation_Library_View_Wrapper_User_RichContent::HOME => new Intonation_Library_View_Wrapper_User_RichContent_Home, - Intonation_Library_View_Wrapper_User_RichContent::INFO => new Intonation_Library_View_Wrapper_User_RichContent_Informations, + Intonation_Library_View_Wrapper_User_RichContent::INFO => new Intonation_Library_View_Wrapper_User_RichContent_Informations, - Intonation_Library_View_Wrapper_User_RichContent::LOANS => new Intonation_Library_View_Wrapper_User_RichContent_Loans, + Intonation_Library_View_Wrapper_User_RichContent::LOANS => new Intonation_Library_View_Wrapper_User_RichContent_Loans, - Intonation_Library_View_Wrapper_User_RichContent::HOLDS => new Intonation_Library_View_Wrapper_User_RichContent_Holds, + Intonation_Library_View_Wrapper_User_RichContent::HOLDS => new Intonation_Library_View_Wrapper_User_RichContent_Holds, - Intonation_Library_View_Wrapper_User_RichContent::SUGGESTIONS => new Intonation_Library_View_Wrapper_User_RichContent_Suggestions, + Intonation_Library_View_Wrapper_User_RichContent::SUGGESTIONS => new Intonation_Library_View_Wrapper_User_RichContent_Suggestions, - Intonation_Library_View_Wrapper_User_RichContent::SELECTIONS => new Intonation_Library_View_Wrapper_User_RichContent_Selections, + Intonation_Library_View_Wrapper_User_RichContent::SELECTIONS => new Intonation_Library_View_Wrapper_User_RichContent_Selections, - Intonation_Library_View_Wrapper_User_RichContent::REVIEWS => new Intonation_Library_View_Wrapper_User_RichContent_Reviews, + Intonation_Library_View_Wrapper_User_RichContent::REVIEWS => new Intonation_Library_View_Wrapper_User_RichContent_Reviews, - Intonation_Library_View_Wrapper_User_RichContent::AGENDA => new Intonation_Library_View_Wrapper_User_RichContent_Agenda, + Intonation_Library_View_Wrapper_User_RichContent::AGENDA => new Intonation_Library_View_Wrapper_User_RichContent_Agenda, - Intonation_Library_View_Wrapper_User_RichContent::SETTINGS => new Intonation_Library_View_Wrapper_User_RichContent_Settings]; + Intonation_Library_View_Wrapper_User_RichContent::SETTINGS => new Intonation_Library_View_Wrapper_User_RichContent_Settings]); } diff --git a/tests/scenarios/Templates/ChiliTest.php b/tests/scenarios/Templates/ChiliTest.php index 26e308b0243b23c57bfc5f5cec0488d04a99d185..e3a9b9d97b7a102c71c1c902556857e000d9fe5e 100644 --- a/tests/scenarios/Templates/ChiliTest.php +++ b/tests/scenarios/Templates/ChiliTest.php @@ -481,6 +481,8 @@ class ChiliTemplateSearchResultWithDomainBrowserTest extends ChiliTemplateTestCa } + + class ChiliTemplateNotLoggedTest extends ChiliTemplateTestCase { @@ -538,4 +540,100 @@ class ChiliEditWidgetLibraryTest extends ChiliTemplateTestCase { public function layoutSelectorShouldContainsLeftHighlightCarousel() { $this->assertXPath('//form//select[@name="layout"]/option[@value="left_highlight_carousel"]'); } +} + + + + +class ChiliAbonneFicheTest extends ChiliTemplateTestCase { + public function setUp() { + parent::setUp(); + Class_AdminVar::set('FEATURES_LIST', 0); + + $conf = (new Class_Systeme_Widget_Action) + ->setId('abonne_fiche') + ->setProfileId(1) + ->load(); + + $conf + ->setNewDatas(['ChiliLabelUserInformations' => 'Mes datas']) + ->updateProfile(); + + $this->dispatch('/opac/abonne/fiche'); + } + + + /** @test */ + public function pageShouldContainButtonMesConfigurationsInCarouselWithThreeColumns() { + $this->assertXPathContentContains('//div[@data-action="abonne_fiche"]//div[contains(@class, "container-fluid")]//div[@class="big_buttons chili_widget col-10 col-xl-9"]//div[@class="big_buttons_sm d-block d-lg-none"]//div[contains(@class, "carousel-item")][3]//div[contains(@class, "card")]//a[contains(@href, "/abonne/configurations")]', + 'Mes configurations'); + } + + + /** @test */ + public function imageForMesConfigurationsShouldBeHaveClassesFaUserCogBigButton() { + $this->assertXPath('//div[contains(@class, "carousel-item")][3]//i[@class="fas fa-user-cog big_button"]'); + } + + + /** @test */ + public function pageShouldContainsButtonMesConfigurationsInWallGrid() { + $this->assertXPathContentContains('//main//div[@class="big_buttons_lg d-none d-lg-block"]//div[contains(@class, "masonry_grid")]//a[contains(@href, "/abonne/configurations")]', + 'Mes configurations'); + } + + + /** @test */ + public function pageShouldContainsButtonMesDatasInWallGrid() { + $this->assertXPathContentContains('//main//div[@class="big_buttons_lg d-none d-lg-block"]//div[contains(@class, "masonry_grid")]//a[contains(@href, "/abonne/informations")]', + 'Mes datas'); + } + + + /** @test */ + public function pageShouldNotContainsHomeSection() { + $this->assertNotXPathContentContains('//div[contains(@class, "card")]', 'Tout'); + } + + + /** @test */ + public function pageShouldContainsUserThumbnail() { + $this->assertXPath('//main//div[contains(@class, "card")]//img[contains(@src, "abonnes/read_black.png")]'); + } + + + /** @test */ + public function pageShouldContainsLinkToChangeUserThumbnail() { + $this->assertXPath('//main//div[contains(@class, "card")]//a[contains(@href, "abonne/change-image")]'); + } + + + /** @test */ + public function pageShouldContainsH1WithUserName() { + $this->assertXPathContentContains('//main//div[@data-action="abonne_fiche"]//h1', + 'Bonjour AutoTest'); + } + + + /** @test */ + public function pageTitleShouldBeMonCompte() { + $this->assertXPathContentContains('//head/title', 'Mon compte'); + } +} + + + + +class ChiliAbonneConfigurationsTest extends ChiliTemplateTestCase { + public function setUp() { + parent::setUp(); + $this->dispatch('/opac/abonne/configurations'); + } + + + /** @test */ + public function ficheLinkTextShouldBeMonCompte() { + $this->assertXPathContentContains('//li[contains(@class, "nav-item")]//i[@class="fas fa-user-circle"]/following-sibling::div', + 'Mon compte'); + } } \ No newline at end of file diff --git a/tests/scenarios/Templates/TemplatesReviewsTest.php b/tests/scenarios/Templates/TemplatesReviewsTest.php index c0aa82c22c0d05ffa158b9e1135b3f33af0837cb..58250f5fc75b28b8800f1c9b4f3942e935a22044 100644 --- a/tests/scenarios/Templates/TemplatesReviewsTest.php +++ b/tests/scenarios/Templates/TemplatesReviewsTest.php @@ -235,7 +235,6 @@ class TemplatesReviewsBlogActionTest extends TemplatesIntonationTestCase { } - /** @test */ public function reviewShouldContainsReviewDateWednesdayOctober20th() { $this->assertXPathContentContains('//div[contains(@class, "review_date")]/span',