As a website user I need to be able to see the shoppinglist and use its elements @anonymous Scenario: Visit shoppinglist page as anonymous Given I am not logged in And I am on profile “shopping lists" Then I should see “My shopping lists" And I should see “I don’t have an M-connect account yet“ @loggedin Scenario: See the shoppinglist Given I am logged in And I am on profile “shopping lists" Then I should see "My shopping lists" And I should see "I don’t have an M-connect account yet"
shoppinglist As a website user I need to be able to see the shoppinglist and use its elements @anonymous Scenario: Visit shoppinglist page as anonymous Given I am not logged in And I am on profile “shopping lists" Then I should see “My shopping lists" And I should see “I don’t have an M-connect account yet“ @loggedin Scenario: See the shoppinglist Given I am logged in And I am on profile “shopping lists" Then I should see “My shopping lists" And I should see “Active lists"
shoppinglist As a website user I need to be able to see the shoppinglist and use its elements Scenario: Larry garfield at a conference Given I am Larry Garfield And I am at a conference Then I should wear “Blue shirt” And I should wear “Leather vest" @loggedin Scenario: See the shoppinglist Given I am logged in And I am on profile “shopping lists" Then I should see “My shopping lists" And I should see “Active lists"
a global administrator named "Greg" And a blog named "Greg's anti-tax rants" And a customer named "Wilson" And a blog named "Expensive Therapy" owned by "Wilson" Scenario: Wilson posts to his own blog Given I am logged in as Wilson When I try to post to "Expensive Therapy" Then I should see "Your article was published." Scenario: Greg posts to a client's blog Given I am logged in as Greg When I try to post to "Expensive Therapy" Then I should see "Your article was published."
Given there are 12 beers When I drink 5 beers Then I should have 7 beers Scenario: Drink 5 out of 20 Given there are 20 beers When I drink 5 beers Then I should have 15 beers
are <start> beers When I drink <drink> beers Then I should have <left> beers Examples: | start | drink | left | | 12 | 5 | 7 | | 20 | 5 | 15 | Keep it DRY
= $page->find('css', '.hidden-phone .search-input'); $searchField->click(); $searchField->setValue($searchterm); $searchButton = $page->find('css', '.hidden-phone .search-btn'); $searchButton->click(); // Wait until we have a search-title with a length longer than 0. $session->wait( 0, "$('.search-title').length > 0" ); $this->saveScreenshot('debugscreenshot.png', self::DEBUGPATH);
= $page->find('css', '.hidden-phone .search-input'); $searchField->click(); $searchField->setValue($searchterm); $searchButton = $page->find('css', '.hidden-phone .search-btn'); $searchButton->click(); // Wait until we have a search-title with a length longer than 0. $session->wait( 0, "$('.search-title').length > 0" ); $this->saveScreenshot('debugscreenshot.png', self::DEBUGPATH);
= $page->find('css', '.hidden-phone .search-input'); $searchField->click(); $searchField->setValue($searchterm); $searchButton = $page->find('css', '.hidden-phone .search-btn'); $searchButton->click(); // Wait until we have a search-title with a length longer than 0. $session->wait( 0, "$('.search-title').length > 0" ); $this->saveScreenshot('debugscreenshot.png', self::DEBUGPATH);
= $page->find('css', '.hidden-phone .search-input'); $searchField->click(); $searchField->setValue($searchterm); $searchButton = $page->find('css', '.hidden-phone .search-btn'); $searchButton->click(); // Wait until we have a search-title with a length longer than 0. $session->wait( 0, "$('.search-title').length > 0" ); $this->saveScreenshot('debugscreenshot.png', self::DEBUGPATH);
= $page->find('css', '.hidden-phone .search-input'); $searchField->click(); $searchField->setValue($searchterm); $searchButton = $page->find('css', '.hidden-phone .search-btn'); $searchButton->click(); // Wait until we have a search-title with a length longer than 0. $session->wait( 0, "$('.search-title').length > 0" ); $this->saveScreenshot('debugscreenshot.png', self::DEBUGPATH);