Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Try to make functional tests more reliable #544

Merged
merged 1 commit into from
Aug 11, 2016

Conversation

ian-ross
Copy link
Contributor

Proposed changes in this pull request

This is an attempt to make the functional tests on Travis a bit more reliable. I believe that the reason things have been failing intermittently, almost exclusively on the login page, was because we were using the presence of an alert to indicate that the login was successful. Since the "OK" alerts now disappear on a timer, it's possible for the login to work, and the alert to appear and disappear before Selenium gets around to checking it. The test then times out.

I've changed the post-login check to look for permanent page features instead: for most pages, this is the dashboard-map DIV, but it's possible to override this in the login method of LoginPage (which is needed for cases with post-login redirections).

When should this PR be merged

Immediately.

Risks

None: it can't make anything worse!

Follow up actions

Bask in the glow of working functional tests...

@oliverroick oliverroick merged commit 07695e4 into master Aug 11, 2016
@oliverroick oliverroick deleted the tech-debt/functional-test-cleanup branch August 11, 2016 09:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants