/** * @Then I should be viewing the administration panel in :localeCode * @Then I should still be viewing the administration panel in :localeCode * @Then they should be viewing the administration panel in :localeCode */ public function iShouldBeViewingTheAdministrationPanelIn($localeCode) { $this->dashboardPage->open(); $expectedSubHeader = $this->translate('sylius.ui.overview_of_your_store', $localeCode); $actualSubHeader = $this->dashboardPage->getSubHeader(); Assert::same($actualSubHeader, $expectedSubHeader, sprintf('Dashboard header should say "%s", but says "%s" instead.', $expectedSubHeader, $actualSubHeader)); }
/** * @When I open administration dashboard */ public function iOpenAdministrationDashboard() { $this->dashboardPage->open(); }
/** * @When I open administration dashboard for :code channel */ public function iOpenAdministrationDashboardForChannel($code) { $this->dashboardPage->open(['channelCode' => $code]); }
/** * @When I log out */ public function iLogOut() { $this->dashboardPage->open(); $this->dashboardPage->logOut(); }
/** * @Then I should still be able to access the administration dashboard */ public function iShouldBeAbleToAccessAdministrationDashboard() { $this->dashboardPage->open(); }