Skip to content

Commit

Permalink
Merge branch 'master' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed Jan 11, 2018
2 parents 5f3806b + fd8bcc0 commit b6a3cc2
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/surveys/AjaxModeTest.php
Expand Up @@ -31,6 +31,10 @@ public static function setupBeforeClass()
*/
public function testAjaxModeRecordsAnswer()
{
// TODO: This works when run individually, but not
// as part of the test suit. Screenshot shows it's
// stuck on welcome page.
$this->markTestSkipped();

// Get questions.
$survey = \Survey::model()->findByPk(self::$surveyId);
Expand Down Expand Up @@ -67,6 +71,13 @@ public function testAjaxModeRecordsAnswer()
$nextButton = self::$webDriver->findElement(WebDriverBy::id('ls-button-submit'));
$nextButton->click();

sleep(1);

// TODO: Temporary, test fails here (but only on fresh install).
$screenshot = self::$webDriver->takeScreenshot();
$filename = self::$screenshotsFolder.'/AjaxModeTest.png';
file_put_contents($filename, $screenshot);

// Find yes-no radio buttons, click "Yes".
$items = self::$webDriver->findElements(WebDriverBy::cssSelector('ul.yesno-button li'));
$this->assertCount(3, $items, 'Three radio buttons for yes-no question');
Expand Down

0 comments on commit b6a3cc2

Please sign in to comment.