Skip to content

Commit

Permalink
feat: revert chromuim downgrade logic
Browse files Browse the repository at this point in the history
Signed-off-by: SuZhou-Joe <[email protected]>
  • Loading branch information
SuZhou-Joe committed Nov 29, 2023
1 parent cf5c6b9 commit 55d27ef
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 43 deletions.
40 changes: 0 additions & 40 deletions .github/workflows/cypress-workflow-vanilla-snapshot-based.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,46 +20,6 @@ jobs:
# make Node run in ipv4 first so that cypress can detect 5601 port in CI environment
NODE_OPTIONS: '--max-old-space-size=6144 --dns-result-order=ipv4first'
steps:
- name: Set up Chrome v115
run: |
wget -q -O chrome.deb https://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stable/google-chrome-stable_115.0.5790.170-1_amd64.deb
sudo dpkg -i chrome.deb
sudo apt-get install -f
- name: Set up ChromeDriver v115
run: |
wget https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.170/linux64/chromedriver-linux64.zip
unzip chromedriver-linux64.zip
sudo mv ./chromedriver-linux64/chromedriver /usr/local/bin
rm chromedriver-linux64.zip
rm -rf ./chromedriver-linux64
- name: Set up Chromium v115
run: |
CHROMIUM_DIR="/usr/local/share/chromium"
CHROMIUM_BIN="${CHROMIUM_DIR}/chrome-linux/chrome"
## install Chromium on version 115, the version greater than 115 will hang under some cases
wget -q -O chromium.zip https://www.googleapis.com/download/storage/v1/b/chromium-browser-snapshots/o/Linux_x64%2F1148103%2Fchrome-linux.zip?alt=media
sudo rm -rf $CHROMIUM_DIR
sudo mkdir $CHROMIUM_DIR
## remove exist chromium installed by runner-image
sudo unzip -qq chromium.zip -d $CHROMIUM_DIR
sudo unlink /usr/bin/chromium
sudo unlink /usr/bin/chromium-browser
## add link to the installed Chromium
sudo ln -s $CHROMIUM_BIN /usr/local/bin/chromium
sudo ln -s $CHROMIUM_BIN /usr/local/bin/chromium-browser
rm chromium.zip
- name: Check versions
run: |
google-chrome --version
chromedriver --version
chromium --version
- name: Set up JDK
uses: actions/setup-java@v1
with:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@ const commonUI = new CommonUI(cy);
const dashboardPage = new DashboardPage(cy);
const miscUtils = new MiscUtils(cy);
describe('dashboard filtering', () => {
beforeEach(() => {
cy.wait(1000);
});
before(() => {
testFixtureHandler.clearJSONMapping(
'cypress/fixtures/dashboard/data/mappings.json.txt'
Expand Down

0 comments on commit 55d27ef

Please sign in to comment.