Skip to content

Commit

Permalink
Dev: Take screenshot in Ajax mode test (temporary)
Browse files Browse the repository at this point in the history
  • Loading branch information
olleharstedt committed Jan 11, 2018
1 parent e05d68c commit 02e4f30
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/surveys/AjaxModeTest.php
Expand Up @@ -67,6 +67,11 @@ public function testAjaxModeRecordsAnswer()
$nextButton = self::$webDriver->findElement(WebDriverBy::id('ls-button-submit'));
$nextButton->click();

// 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 02e4f30

Please sign in to comment.