Skip to content

Commit

Permalink
Dev: Click quick actions button one more time (tests)
Browse files Browse the repository at this point in the history
  • Loading branch information
olleharstedt committed Nov 22, 2017
1 parent 13e7eda commit 69457ea
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/controllers/CreateSurveyTest.php
Expand Up @@ -111,6 +111,19 @@ public function testCreateSurvey()

sleep(1);

// In case quick actions are hidden, show them.
try {
$showquickactions = self::$webDriver->wait(1)->until(
WebDriverExpectedCondition::elementToBeClickable(
WebDriverBy::cssSelector('#survey-action-chevron i.fa-caret-down')
)
);
$showquickactions->click();
sleep(1);
} catch (NoSuchElementException $ex) {
// Ignore
}

// Click "Add group".
$addgroup = self::$webDriver->wait(10)->until(
WebDriverExpectedCondition::elementToBeClickable(
Expand Down

0 comments on commit 69457ea

Please sign in to comment.