1 | <?php |
||
31 | class KyelaContext extends BaseContext |
||
32 | { |
||
33 | /** @var MinkContext $minkContext */ |
||
34 | protected $minkContext; |
||
35 | |||
36 | /** |
||
37 | * @BeforeScenario |
||
38 | */ |
||
39 | public function gatherContexts(BeforeScenarioScope $scope) |
||
40 | { |
||
41 | /** @var InitializedContextEnvironment $environment */ |
||
42 | $environment = $scope->getEnvironment(); |
||
43 | $this->minkContext = $environment->getContext('Behat\MinkExtension\Context\MinkContext'); |
||
44 | |||
45 | if ($this->minkContext->getSession()->getDriver() instanceof Selenium2Driver) |
||
46 | { |
||
47 | $this->minkContext->getSession()->getDriver()->resizeWindow(1440, 1800); |
||
48 | } |
||
49 | } |
||
50 | |||
51 | /** |
||
52 | * @When I wait for the participation to update |
||
53 | */ |
||
54 | public function iWaitForTheParticipationToUpdate() |
||
55 | { |
||
56 | $this->minkContext->getSession()->wait(2000, "!$('.ajaxloader').is(':visible')"); |
||
57 | } |
||
58 | |||
59 | /** |
||
60 | * @Then the :colIndex column of the footer should contain :text |
||
61 | */ |
||
62 | public function theColumnOfTheFooterInTheTableShouldContain($colIndex, $text) |
||
73 | |||
74 | /** |
||
75 | * @Then /^I press the (?P<index>\d+)(?:st|nd|rd|th) button containing a "(?P<icon>[^"]*)" icon$/ |
||
76 | */ |
||
77 | public function iPressTheButtonContainingIcon($index, $glyphicon) |
||
83 | } |
||
84 |