Skip to content

Commit

Permalink
Dev: questionTypeSelector disable access to question title
Browse files Browse the repository at this point in the history
  • Loading branch information
Shnoulle committed Oct 12, 2018
1 parent a4368f3 commit e9575df
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tests/controllers/CreateSurveyTest.php
Expand Up @@ -156,6 +156,21 @@ public function testCreateSurvey()
$save->click();
sleep(3);

// Close question type selector
try {
$button = self::$webDriver->wait(2)->until(
WebDriverExpectedCondition::elementToBeClickable(
WebDriverBy::cssSelector('#selector__questionTypeSelector-modal button.btn-default')
)
);
$button->click();
} catch (TimeOutException $ex) {
// Do nothing.
} catch (NoSuchElementException $ex) {
// Do nothing.
}
sleep(1);

// Add question title.
$groupname = self::$webDriver->findElement(WebDriverBy::id('title'));
$groupname->clear()->sendKeys('question1');
Expand Down

0 comments on commit e9575df

Please sign in to comment.