Commit Graph

15 Commits

Author SHA1 Message Date
Jeremy Stanley 9acd702028 don't specify a chromedriver version in example yml
after g/255045, we don't need to override the version jenkins uses
to do local selenium testing anymore, so simply removing the line
saves the trouble of updating it every time there's a new version
of chrome

test plan:
 - remove chromedriver_version from config/selenium.yml
 - you should be able to run selenium specs locally

Change-Id: Ia2ccd9fbe6ed518adbcc9c6cf0755e4e22f4507a
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/279761
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: James Butters <jbutters@instructure.com>
QA-Review: Jeremy Stanley <jeremy@instructure.com>
Product-Review: Jeremy Stanley <jeremy@instructure.com>
2022-01-10 17:29:32 +00:00
James Butters 27214d2f51 update chrome version and cleanup SELENIUM_VERSION
[ignore-stage-results=Flakey Spec Catcher]

update chrome version to run tests against. A few small
fixes to work with new chromedriver.

closes: DE-930

Test Plan:
-Jenkins passes
-FSC build passes
-Run test local docker dev setup
-Run test local dev setup

Change-Id: Ie2d5dd918f85cbcc01d0f8b572efa8aab71c1803
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/279959
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Aaron Ogata <aogata@instructure.com>
QA-Review: James Butters <jbutters@instructure.com>
Product-Review: James Butters <jbutters@instructure.com>
2021-12-07 14:18:47 +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
James Butters da9fd405ff upgrade selenium to version 87
flag = none

Test Plan:
- Jenkins build passes with browser 87
- docker locally builds and runs selenium tests on chrome 87
- local install of canvas runs seleniums on chrome 87

Change-Id: Id1600e002c202a4dd90405d9b68a3ff092cbd764
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/255045
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
QA-Review: James Butters <jbutters@instructure.com>
Reviewed-by: Aaron Ogata <aogata@instructure.com>
Product-Review: James Butters <jbutters@instructure.com>
2020-12-15 16:24:37 +00:00
Derek Bender 1e31f18cd9 docs: add auto_open_devtools to docker
also fix code comments formatting

Change-Id: Idb507f00181bd56372d4c8fc5136c8b2576fb7fa
Reviewed-on: https://gerrit.instructure.com/168687
Tested-by: Jenkins
Reviewed-by: Ryan Shaw <ryan@instructure.com>
QA-Review: Derek Bender <djbender@instructure.com>
Product-Review: Derek Bender <djbender@instructure.com>
2018-10-17 18:13:17 +00:00
Ryan Shaw bf343048a8 [spec] Add option to auto_open_devtools in selenium
test plan:
* put `auto_open_devtools: true` in your selenium.yml
* put a `debugger` statement somewhere in the js code you are testing
* run selenium
* it should auto open the chrome dev tools and pause on that `debugger`
  statement

(Meaning you don’t have to do the race game to try to beat selenium to
Open the console before that line of js code is executed)

Change-Id: I7ae09cf786015fbcadb11fd6f84a5ab319de6245
Reviewed-on: https://gerrit.instructure.com/168557
Tested-by: Jenkins
QA-Review: Ryan Shaw <ryan@instructure.com>
Product-Review: Ryan Shaw <ryan@instructure.com>
Reviewed-by: Clay Diffrient <cdiffrient@instructure.com>
2018-10-16 22:20:03 +00:00
Rachel Bengochea f4880c240e add blueprint setting options to the course settings page
closes MC-182

Test Plan:
-Create a new course
-On the settings page, enable the course as a blueprint course
-Save the page
-check several of the general setting selections
-Save the page again (notice the settings remain selected after saving)
-Check and make sure the items locked stay locked on other pages
-Select Granular Locking
-Expand and close each tab
-Notice that each tab has the appropriate objects to lock
-Select several checkboxes
-Make sure the lock icon changes and the title updates appropriately
-Save the Page(notice the settings remain selected after saving)
-Check and make sure the items selected lock on the appropriate pages
-Create a new course
-Add students
-On the settings page, make sure the blueprint checkbox is disabled
-a message appears when hovering over the disabled checkbox

Change-Id: I06f1783881a4ce875be3e6bd9129d8302f1ba2de
Reviewed-on: https://gerrit.instructure.com/112165
Tested-by: Jenkins
Reviewed-by: Steven Burnett <sburnett@instructure.com>
QA-Review: Nathan Rogowski <nathan@instructure.com>
Product-Review: Pert Eilers <peilers@instructure.com>
2017-06-02 23:07:51 +00:00
Santosh Natarajan 5f04437356 run canvas specs on saucelabs
Test Plan
a) Verify that canvas specs runs successfuly for
 chrome
 internet explorer
 safari
 firefox
b) Verify existing local browsers i.e. firefox and chrome work

refs
CNVS-28701

Change-Id: Ia1fe17c0bb0097f20ad60e49015cb458b92c8e0b
Reviewed-on: https://gerrit.instructure.com/76868
Tested-by: Jenkins
Reviewed-by: Jon Jensen <jon@instructure.com>
QA-Review: Santosh Natarajan <snatarajan@instructure.com>
Product-Review: Santosh Natarajan <snatarajan@instructure.com>
2016-06-13 16:06:49 +00:00
cguanzon 28ada8ce13 creates config file for Appium
- this is in preparation for separating the appium tests
  from the selenium tests

- Test Plan:
   make sure it passes Jenkins
   make sure all the Appium Tests still work

Change-Id: Ie2810c489ed8672f4c3a99392927444b317618d4
Reviewed-on: https://gerrit.instructure.com/61263
Reviewed-by: Taylor Wilson <twilson@instructure.com>
Tested-by: Jenkins
Product-Review: Caleb Guanzon <cguanzon@instructure.com>
QA-Review: Caleb Guanzon <cguanzon@instructure.com>
2015-08-19 19:14:42 +00:00
Taylor Wilson f64a4fe5bd Landing page specs for iCanvas and SpeedGrader for iOS apps
twilson, panda, 4

  - added shared examples for iCanvas and SpeedGrader landing page

  - minor changes to appium environment setup, school_domain now
    defined in selenium.yml file

  - to test: comment/uncomment appium init and skip statements in
    mobile_common, spin up Appium server, create and edit yml file,
    and run specs

Change-Id: Ica180895f167e007cab14cadfe79e554a44f25da
Reviewed-on: https://gerrit.instructure.com/61118
Reviewed-by: Heath Hales <hhales@instructure.com>
Reviewed-by: Steven Shepherd <sshepherd@instructure.com>
Tested-by: Jenkins
Product-Review: Ben Bolton <bbolton@instructure.com>
QA-Review: Ben Bolton <bbolton@instructure.com>
2015-08-18 16:38:52 +00:00
Taylor Wilson 6a7b7ce1c7 Refactoring Appium to support SpeedGrader and mobile Canvas
twilson, panda, 5

  - refactor to support mobile SpeedGrader and mobile
    Canvas apps for both Android and iOS

  - landing_page_common moved to shared context to be
    used with SpeedGrader and mobile Canvas

  - to test: comment/uncomment appium init and skip
    statements in mobile_common, spin up Appium server,
    and run specs

Change-Id: I4862f69874549e972488f44b65c5aeac6b47bf4a
Reviewed-on: https://gerrit.instructure.com/60538
Reviewed-by: Caleb Guanzon <cguanzon@instructure.com>
Reviewed-by: Jahnavi Yetukuri <jyetukuri@instructure.com>
Tested-by: Jenkins
Product-Review: Ben Bolton <bbolton@instructure.com>
QA-Review: Ben Bolton <bbolton@instructure.com>
2015-08-16 03:08:56 +00:00
Brian Palmer 9d45cf520a allow specifying browser path in selenium.yml
testplan: add a path to your selenium.yml and verify the right browser
launches

Change-Id: I162d64ef48f9241982f7e103bb497ce4c40bfadc
Reviewed-on: https://gerrit.instructure.com/7220
Tested-by: Hudson <hudson@instructure.com>
Reviewed-by: Zach Wily <zach@instructure.com>
2011-12-01 09:38:52 -07:00
Zach Wily a99b176f8d make selenium tests use a random port
Change-Id: I2fcdb51143fc4a81702be281e64c0df6a6cb0633
Reviewed-on: https://gerrit.instructure.com/4302
Tested-by: Hudson <hudson@instructure.com>
Tested-by: Selenium <selenium@instructure.com>
Reviewed-by: Brian Palmer <brianp@instructure.com>
2011-06-21 12:04:06 -06:00
Brian Palmer 250d846d66 more selenium config options, and run the web server in-process
Change-Id: I08b31b89951ebc9328836ee75c4a943ab8d4010d
Reviewed-on: https://gerrit.instructure.com/2358
Tested-by: Hudson <hudson@instructure.com>
Reviewed-by: JT Olds <jt@instructure.com>
2011-02-22 10:37:29 -07:00
Brian Whitmer 8b8173dcc9 Initial commit.
closes #6988138
2011-01-31 18:57:29 -07:00