Commit Graph

4 Commits

Author SHA1 Message Date
Aaron Shafovaloff e4b0f8b78c tweak doc/testing_with_selenium.md
Change-Id: I6a9c9dc6c75258ac920aec8d90e64fcde8e1388f
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/316660
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Derek Williams <derek.williams@instructure.com>
Reviewed-by: Kai Bjorkman <kbjorkman@instructure.com>
QA-Review: Kai Bjorkman <kbjorkman@instructure.com>
Product-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
2023-04-24 16:14:46 +00:00
Jeff Largent d7746403e8 Support running against headless chrome, fix flakey spec
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>
2021-01-12 16:27:14 +00:00
SamMalcolm 3f29fb0f2c need to use cask for chromedriver in selenium docs
Change-Id: I16a90de3e1b98004f9eaff5e3dd279355ecf03c5
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/214619
Tested-by: Jenkins
Reviewed-by: Bryan Petty <bpetty@instructure.com>
QA-Review: Clay Diffrient <cdiffrient@instructure.com>
Product-Review: Clay Diffrient <cdiffrient@instructure.com>
2019-10-24 22:18:45 +00:00
Michael Hargiss 3cfbdf31ac add selenium doc and prepare script
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>
2018-10-10 18:22:06 +00:00