Skip to content

Commit

Permalink
version geckodriver
Browse files Browse the repository at this point in the history
  • Loading branch information
maxcao13 committed Sep 14, 2023
1 parent 91e6b5b commit 87ff831
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ jobs:
with:
firefox-version: latest
- name: Download geckodriver
run: curl -sL $(curl -s https://api.github.com/repos/mozilla/geckodriver/releases/latest | grep "https.*linux64.tar.gz" | head -n 1 | awk '{print $2}' | sed 's|[\"\,]*||g') | tar xzvf -
# id: 97834079 -> "v0.33.0"
run: curl -sL $(curl -s https://api.github.com/repos/mozilla/geckodriver/releases/97834079 | grep "https.*linux64.tar.gz" | head -n 1 | awk '{print $2}' | sed 's|[\"\,]*||g') | tar xzvf -
- name: Add to PATH
run: sudo mv geckodriver /usr/local/bin
- run: yarn itest:preview
8 changes: 4 additions & 4 deletions TESTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,11 @@ We can also use Jest as a test runner for Selenium tests. This allows us to writ

To run the integration tests, you will need to have the preview server running. You can start the preview server by running `yarn start:dev:preview`.

You will also need a WebDriver implementation for the specific browser you want to automate. WebDriver allows Selenium to control the browser and perform actions on web elements. Here are the correct download links for Geckodriver, ChromeDriver, and EdgeDriver:
You will also need a WebDriver implementation for the specific browser you want to automate. WebDriver allows Selenium to control the browser and perform actions on web elements. Here is the release page for the latest known supported version of Geckodriver.

* [Geckodriver (for Firefox)](https://github.com/mozilla/geckodriver/releases)
* [ChromeDriver (for Chrome)](https://sites.google.com/chromium.org/driver)
* [Edge WebDriver (for Microsoft Edge)](https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver/)
* [Geckodriver v0.33.0 (for Firefox)](https://github.com/mozilla/geckodriver/releases/tag/v0.33.0)

<sub>**Note**: Currently only Geckodriver is supported for `cryostat-web` itests. In the future, there should be support for [ChromeDriver (for Chrome)](https://sites.google.com/chromium.org/driver) and [Edge WebDriver (for Microsoft Edge)](https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver/).</sub>

Then, finally we can run `yarn itest` to run the integration tests, which will open up a fresh browser window and run the tests.

Expand Down

0 comments on commit 87ff831

Please sign in to comment.