Skip to content

Commit

Permalink
Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
olleharstedt committed Aug 18, 2022
1 parent 4f4dffd commit da4e908
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tests/README.md
Expand Up @@ -9,6 +9,21 @@ Functional tests are divided into back-end (survey administration) and front-end

Unit tests are divided into models, helpers, controllers, etc...

## Debugging

Often, failures happen due to timing issue, or missing wait() or sleep().

Here's one way to debug the CI:

try {
$web->wait(20)->until(WebDriverExpectedCondition::visibilityOfElementLocated(WebDriverBy::cssSelector('#massive-actions-modal-failedemail-grid-resend-1 #preserveResend')));
} catch (TimeOutException $ex) {
$body = $web->findElement(WebDriverBy::tagName('body'));
var_dump($body->getText());
throw $ex;
}


## Future directions

Something to consider for the future is the time-constraint of the CI. Integrity tests take longer to execute,
Expand Down

0 comments on commit da4e908

Please sign in to comment.