Skip to content

Commit

Permalink
Merge pull request #199 from Agoric/rs-fix-e2e-test-failures
Browse files Browse the repository at this point in the history
ci: use chromium browser for e2e testing
  • Loading branch information
rabi-siddique authored Nov 14, 2024
2 parents 9e73ea0 + deac4c7 commit aa68b14
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 9 deletions.
1 change: 0 additions & 1 deletion .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ on:
types:
- opened
- reopened
- edited
- labeled
- synchronize
schedule:
Expand Down
7 changes: 2 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,8 @@ ENV NODE_OPTIONS=--dns-result-order=ipv4first
RUN apt-get update \
&& apt-get install -y wget gnupg ca-certificates jq expect xvfb

# Install Chrome
RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \
&& sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list' \
&& apt-get update \
&& apt-get install -y google-chrome-stable
# Install Chromium
RUN apt-get install -y chromium

# Setup Nginx
RUN apt update && apt install -y nginx
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"lint": "yarn lint:types && yarn lint:eslint",
"lint:types": "tsc -p jsconfig.json",
"lint:eslint": "eslint '**/*.js'",
"test:e2e": "SKIP_EXTENSION_SETUP=true EXTENSION=keplr synpress run --configFile=test/e2e/synpress.config.cjs",
"test:e2e": "SKIP_EXTENSION_SETUP=true EXTENSION=keplr synpress run --configFile=test/e2e/synpress.config.cjs --browser chromium",
"test:e2e:ci": "yarn build && start-server-and-test 'yarn preview' http-get://localhost:3001 'yarn test:e2e'"
},
"exports": {
Expand Down Expand Up @@ -61,7 +61,7 @@
"rollup-plugin-multi-input": "^1.3.1",
"rollup-plugin-summary": "^1.3.0",
"rollup-plugin-terser": "^7.0.2",
"ses": "^1.8.0",
"ses": "^1.10.0",
"start-server-and-test": "^2.0.3",
"typescript": "^4.2.3"
},
Expand Down
3 changes: 2 additions & 1 deletion test/e2e/specs/test.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ import {

describe('Wallet App Test Cases', { execTimeout: DEFAULT_EXEC_TIMEOUT }, () => {
const AGORIC_NET = Cypress.env('AGORIC_NET').trim() || 'local';
const userConfig = config[AGORIC_NET === 'local' ? 'local' : 'testnet'];
const network = AGORIC_NET === 'local' ? 'local' : 'testnet';
const userConfig = config[network];
let istBalance = 0;

context('Bidding Tests', () => {
Expand Down
12 changes: 12 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3022,6 +3022,11 @@
resolved "https://registry.yarnpkg.com/@endo/env-options/-/env-options-1.1.6.tgz#f4e2dcb22f19f33c0431303c7387c7f5b54c757f"
integrity sha512-Uqy94PwLTco90Yfign43muvDtjsYTbL6Ck4W5sSWQUqJiFOL+YP8kiBOoGyQynDsGTY0MCQvMxEPfphaJKnzlQ==

"@endo/env-options@^1.1.8":
version "1.1.8"
resolved "https://registry.yarnpkg.com/@endo/env-options/-/env-options-1.1.8.tgz#dbfcfbf7574f2a793155281d035c8d6f809f5828"
integrity sha512-Xtxw9n33I4guo8q0sDyZiRuxlfaopM454AKiELgU7l3tqsylCut6IBZ0fPy4ltSHsBib7M3yF7OEMoIuLwzWVg==

"@endo/eslint-config@^0.3.9":
version "0.3.21"
resolved "https://registry.yarnpkg.com/@endo/eslint-config/-/eslint-config-0.3.21.tgz#e68bb5821e38a054da6885f035f29390b09287e5"
Expand Down Expand Up @@ -16026,6 +16031,13 @@ ses@^0.18.1, ses@^0.18.4, ses@^0.18.8:
dependencies:
"@endo/env-options" "^0.1.4"

ses@^1.10.0:
version "1.10.0"
resolved "https://registry.yarnpkg.com/ses/-/ses-1.10.0.tgz#b611dd4605c6a1719665bac159cbd43c84d4f3a9"
integrity sha512-HXmJbNEgY/4hsQfaz5dna39vVKNyvlElRmJYk+bjTqSXSElT0Hr6NKwWVg4j0TxP6IuHp/PNMoWJKIRXzmLbAQ==
dependencies:
"@endo/env-options" "^1.1.8"

ses@^1.8.0:
version "1.8.0"
resolved "https://registry.yarnpkg.com/ses/-/ses-1.8.0.tgz#8031ba3ce5bd55ced0e7a805c9cc906b9f5e29da"
Expand Down

0 comments on commit aa68b14

Please sign in to comment.