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

Write browser tests #146

Open
bertday opened this issue Feb 9, 2018 · 0 comments
Open

Write browser tests #146

bertday opened this issue Feb 9, 2018 · 0 comments
Assignees
Labels

Comments

@bertday
Copy link
Contributor

bertday commented Feb 9, 2018

Goal
Write browser tests to make sure our code is working as expected across different browsers before publishing new versions of Mapboard. Ideally, these tests should be automated and prevent failing code from being pushed to production.

Problem
As Mapboard gets more complex, we're starting to see a pattern of fixing one thing and breaking another (regressions). Having automated tests will prevent a lot of these.

Scope
We can pilot a testing workflow by targeting a single tab in Atlas. The Deeds tab is especially prone to errors, since it has more logic and data sources than the others. Let's start by writing a test that just checks the Deeds tab for the right number of parcel tabs, and makes sure the Parcel Details section is showing up with good data.

Once we're comfortable with that test, we can start writing more for the other tabs, especially those with conditional logic (e.g. Condominiums).

Steps

  1. Write a test that can be run locally with Nightwatch.
  2. Integrate the Nightwatch test with BrowserStack Automate and/or Travis to run the test automatically for all pushes to the master branch. There's a document here on that. We'll also want to configure Travis to kick off BrowserStack.

/cc @ajrothwell @regisshogan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants