Skip to content
This repository has been archived by the owner on Aug 12, 2018. It is now read-only.

Commit

Permalink
[not necessary] Wait a few seconds before automatically closing passi…
Browse files Browse the repository at this point in the history
…ng scenarios browser
  • Loading branch information
inoryy committed Jan 29, 2013
1 parent 1edfe46 commit f52793e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
8 changes: 8 additions & 0 deletions features/bootstrap/FeatureContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,12 @@ public function iWaitForSearchResultsToAppear()
{
$this->getSession()->wait(5000, "$('#search_results table td').length > 0");
}

/**
* @Given /^I wait for "([^"]*)" seconds$/
*/
public function iWaitForSeconds($seconds)
{
$this->getSession()->wait($seconds * 1000);
}
}
3 changes: 2 additions & 1 deletion features/search_bar.feature
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@ Scenario: Search results for "mustang"
When I fill in "Car Name" with "mustang"
And I press "Search"
And I wait for search results to appear
Then I should see "Ford Mustang GT500" in results table
Then I should see "Ford Mustang GT500" in results table
And I wait for "5" seconds

0 comments on commit f52793e

Please sign in to comment.