Author: Paweł Jędrzejewski (pawel@sylius.org)
Inheritance: extends Sylius\Behat\Page\SymfonyPageInterface
Esempio n. 1
0
 /**
  * @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));
 }
Esempio n. 2
0
 /**
  * @param string $username
  * @param string $password
  */
 private function logInAgain($username, $password)
 {
     $this->dashboardPage->logOut();
     $this->loginPage->open();
     $this->loginPage->specifyUsername($username);
     $this->loginPage->specifyPassword($password);
     $this->loginPage->logIn();
 }
Esempio n. 3
0
 /**
  * @Then I should see :number new orders in the list
  */
 public function iShouldSeeNewOrdersInTheList($number)
 {
     Assert::same($this->dashboardPage->getNumberOfNewOrdersInTheList(), $number);
 }
Esempio n. 4
0
 /**
  * @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();
 }