Commit graph

55 commits

Author SHA1 Message Date
Christopher Willis-Ford
9e5ead4cc5 test: fix tests to not use chromedriver npm wrapper 2024-02-26 16:21:02 -08:00
Christopher Willis-Ford
61d4ad8e70 test: try to make signing in more reliable 2023-10-30 10:19:05 -07:00
Christopher Willis-Ford
74f2d50e2d test: implement GHA-friendly Sauce labels 2023-10-30 10:19:05 -07:00
Christopher Willis-Ford
c9f67c06cf test: use navigate() instead of driver.get() 2023-10-27 08:31:50 -07:00
Christopher Willis-Ford
621861ee40 test: simplify clickXpath() by letting click() scroll
Instead of trying to proactively scroll if necessary, just let Selenium
handle scrolling. The only reason to handle scrolling manually was to
tell the difference between an off-screen element and one that isn't
visible due to being beneath another element (like the loading screen).
Catching `ElementClickInterceptedError` is a simpler way to do that.
2023-10-27 08:31:50 -07:00
Christopher Willis-Ford
88a7eb9c88 test: make timeouts consistent, general cleanup 2023-10-27 08:31:50 -07:00
Christopher Willis-Ford
bbb8618b87 test: fix join flow test flakiness
- wait for navigation to complete so we don't accidentally grab an
  element on the page we're navigating away from, leading to a stale
  reference
- wait for focus to move into a selected input field so we don't
  accidentally grab the `validation-message` attached to the old input
  box (the "username" box is selected by default on the join flow page)
2023-10-27 08:31:50 -07:00
Christopher Willis-Ford
876e2deb97 test: add scrolling support to clickXpath to fix comments test 2023-10-27 08:31:50 -07:00
Christopher Willis-Ford
95241fae6f test: sign in again for each test if necessary 2023-10-27 08:31:50 -07:00
Christopher Willis-Ford
aceac8237a test: make clickXpath wait until it can 'see' the element 2023-10-27 08:31:50 -07:00
Christopher Willis-Ford
8cf09452c6 test: simplify SeleniumHelperError 2023-10-24 14:18:32 -07:00
Christopher Willis-Ford
4fb4eaab76 test: make Selenium wait timeouts consistent 2023-10-24 14:17:49 -07:00
Christopher Willis-Ford
8ce6a75939 test: strip regenerator-runtime from stack traces 2023-10-24 14:17:44 -07:00
Christopher Willis-Ford
f7dd708619 test: only dump browser info once per throw 2023-10-24 14:14:25 -07:00
Christopher Willis-Ford
856b25d48b test: add lots of debugging info when SeleniumHelper fails 2023-10-24 14:13:33 -07:00
Christopher Willis-Ford
16447298e9 test: document SeleniumHelper and convert to async/await 2023-10-24 14:03:23 -07:00
Christopher Willis-Ford
9a97535168 style(test): enable ES6 and Jest eslint rules for tests 2023-10-24 14:03:18 -07:00
Christopher Willis-Ford
2ea61feb05 test: use macOS 10.15 since 10.14 no longer supports current Chrome 2023-10-03 08:25:26 -07:00
Andy O'Neill
374f75bdee test: change page load strategy to improve integration tests 2023-04-11 09:05:06 -04:00
BryceLTaylor
769cf953dc remove reference to 'loadPageUntilVisible' from selenium-helpers 2021-12-02 16:27:54 -05:00
BryceLTaylor
02af240a7e remove reloads from comment integration tests 2021-12-02 16:26:23 -05:00
BryceLTaylor
47841d7891 Clean up loadPageUntilVisible function in Selenium Helpers 2021-11-30 09:35:49 -05:00
BryceLTaylor
2f15e8720a Create Selenium Helper function loadPageUntilVisible and use in comments test. 2021-11-29 16:35:18 -05:00
BryceLTaylor
6520a5f434 Integration tests use updated Sign In function from Selenium Helpers 2021-11-19 09:38:23 -05:00
BryceLTaylor
6992ca707f Create waitUntilVisible SeleniumHelper function for Jest tests. 2021-11-08 16:37:15 -05:00
BryceLTaylor
45b25c809c update selenium-helper function containsClass 2021-10-22 16:22:11 -04:00
BryceLTaylor
e7b200d472 Add integration tests to check notifications for comments 2021-10-20 10:13:36 -04:00
BryceLTaylor
6ec730887c Clean up studio integration tests 2021-08-20 11:26:00 -04:00
BryceLTaylor
2e5055e05a Create sign in function in selenium helpers for integration tests 2021-08-18 13:46:50 -04:00
BryceLTaylor
511933cde8 use Circle’s BUILD_NUM instead of WORKFLOW_ID in saucelabs tests 2021-05-18 14:36:59 -04:00
BryceLTaylor
c13f2ef598 Check if using circle and add default workflow id to tests and check 2021-05-18 11:32:38 -04:00
BryceLTaylor
7ea74eb431 Use circleCI build ID for saucelabs test names 2021-05-18 09:43:16 -04:00
BryceLTaylor
2e79da8a1c Use const instead of let when finding chrome version 2020-09-23 17:06:13 -04:00
BryceLTaylor
a2d2eca54c change chromedriver version to a const 2020-09-23 17:02:55 -04:00
BryceLTaylor
ebc54bb100 get chromedriver version from the package 2020-09-23 16:59:00 -04:00
BryceLTaylor
8d5b139595 Pin chrome version for saucelabs to chromedriver version 2020-09-14 15:25:01 -04:00
BryceLTaylor
1aa55ca5a2 Update Chrome version used by sauselabs in tests 2020-08-21 10:11:14 -04:00
BryceLTaylor
8c385e3e4d Update chrome version for remote tests and chromedriver 2019-08-13 15:15:44 -04:00
BryceLTaylor
d251ee6e8b fix linting error 2019-06-03 17:12:59 -04:00
BryceLTaylor
49de9b99ed Add waitUntilGone function to integration tests
Make sure the loading screen is not present when loading the project page
2019-06-03 16:27:34 -04:00
BryceLTaylor
352237f59a Update findByXpath selenium helper function 2019-06-03 16:27:34 -04:00
Ben Wheeler
9ae9177ae5 added tests 2019-05-29 15:34:05 -04:00
Ben Wheeler
db89e0744b added tests for search string processing 2019-05-13 15:02:56 -04:00
BryceLTaylor
78dfaf07a8 explicitly require chromedriver so tests run 2018-11-27 11:36:16 -05:00
BryceLTaylor
fc7979944b Update Chrome version in Saucelabs tests 2018-11-07 11:40:10 -05:00
BryceLTaylor
417ce0996e Use Travis’s built in CI environment variable for tests 2018-07-11 14:50:04 -04:00
BryceLTaylor
fb8e0292ce Use Travis build Number rather than ID 2018-07-11 13:21:57 -04:00
BryceLTaylor
b1fa09eef9 Include Travis build id in Sauce Labs test name 2018-07-11 12:07:28 -04:00
BryceLTaylor
90d10dd417 Name Sauce Labs tests to indicate when run by Travis 2018-07-11 11:17:49 -04:00
BryceLTaylor
f678c97727 Make Selenium Helper file more resemble GUI and Update Tests to use it 2018-07-05 14:22:58 -04:00