Adds the ability to easily run Selenium tests locally against headless
chrome by adding `headless` and `window_size` config properties to
`selenium.yml`. Helpful when re-running specs many times to check for
flakiness.
Also attempts to improve the reliability of the new RCE course/link
options Selenium spec by adding an explicit wait for the course links
tray to appear and reducing the number of repetitions.
fixes LS-1744
flag = rce_enhancements
Test plan:
- Ensure that running Selenium specs against regular chrome still
works (aka without any config changes)
- Add `headless: true` and `window_size: "1237,974"` (or similar) to
`selenium.yml` and ensure specs pass the same way
- Spec reliably passes the flakey_spec_catcher!
Change-Id: I3957ded0a431f19e620848b260e7f7d54da07bf6
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/256351
Reviewed-by: Robin Kuss <rkuss@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
QA-Review: Jeff Largent <jeff.largent@instructure.com>
Product-Review: Jeff Largent <jeff.largent@instructure.com>
We have no documentation in Confluence or this repo for running
Selenium tests natively. This commit adds a doc for that.
We're also migrating the "prepare" script from the qa_tools repo
to this one.
Test Plan:
- follow the instructions in doc/testing_with_selenium.md to
verify it's accurate
- run script/canvas_update to verify it still works
- follow the setup instructions in script/prepare/README.md and
verify it works
Change-Id: I11d63e60dc1faa8be1dfacfc9bebfcbea55c31f1
Reviewed-on: https://gerrit.instructure.com/167300
Tested-by: Jenkins
Reviewed-by: David Tan <dtan@instructure.com>
QA-Review: David Tan <dtan@instructure.com>
Product-Review: Michael Hargiss <mhargiss@instructure.com>