Skip to content

Commit aa68b14

Browse files
Merge pull request #199 from Agoric/rs-fix-e2e-test-failures
ci: use chromium browser for e2e testing
2 parents 9e73ea0 + deac4c7 commit aa68b14

File tree

5 files changed

+18
-9
lines changed

5 files changed

+18
-9
lines changed

.github/workflows/e2e.yml

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ on:
1010
types:
1111
- opened
1212
- reopened
13-
- edited
1413
- labeled
1514
- synchronize
1615
schedule:

Dockerfile

+2-5
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,8 @@ ENV NODE_OPTIONS=--dns-result-order=ipv4first
1515
RUN apt-get update \
1616
&& apt-get install -y wget gnupg ca-certificates jq expect xvfb
1717

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

2421
# Setup Nginx
2522
RUN apt update && apt install -y nginx

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"lint": "yarn lint:types && yarn lint:eslint",
2323
"lint:types": "tsc -p jsconfig.json",
2424
"lint:eslint": "eslint '**/*.js'",
25-
"test:e2e": "SKIP_EXTENSION_SETUP=true EXTENSION=keplr synpress run --configFile=test/e2e/synpress.config.cjs",
25+
"test:e2e": "SKIP_EXTENSION_SETUP=true EXTENSION=keplr synpress run --configFile=test/e2e/synpress.config.cjs --browser chromium",
2626
"test:e2e:ci": "yarn build && start-server-and-test 'yarn preview' http-get://localhost:3001 'yarn test:e2e'"
2727
},
2828
"exports": {
@@ -61,7 +61,7 @@
6161
"rollup-plugin-multi-input": "^1.3.1",
6262
"rollup-plugin-summary": "^1.3.0",
6363
"rollup-plugin-terser": "^7.0.2",
64-
"ses": "^1.8.0",
64+
"ses": "^1.10.0",
6565
"start-server-and-test": "^2.0.3",
6666
"typescript": "^4.2.3"
6767
},

test/e2e/specs/test.spec.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ import {
88

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

1415
context('Bidding Tests', () => {

yarn.lock

+12
Original file line numberDiff line numberDiff line change
@@ -3022,6 +3022,11 @@
30223022
resolved "https://registry.yarnpkg.com/@endo/env-options/-/env-options-1.1.6.tgz#f4e2dcb22f19f33c0431303c7387c7f5b54c757f"
30233023
integrity sha512-Uqy94PwLTco90Yfign43muvDtjsYTbL6Ck4W5sSWQUqJiFOL+YP8kiBOoGyQynDsGTY0MCQvMxEPfphaJKnzlQ==
30243024

3025+
"@endo/env-options@^1.1.8":
3026+
version "1.1.8"
3027+
resolved "https://registry.yarnpkg.com/@endo/env-options/-/env-options-1.1.8.tgz#dbfcfbf7574f2a793155281d035c8d6f809f5828"
3028+
integrity sha512-Xtxw9n33I4guo8q0sDyZiRuxlfaopM454AKiELgU7l3tqsylCut6IBZ0fPy4ltSHsBib7M3yF7OEMoIuLwzWVg==
3029+
30253030
"@endo/eslint-config@^0.3.9":
30263031
version "0.3.21"
30273032
resolved "https://registry.yarnpkg.com/@endo/eslint-config/-/eslint-config-0.3.21.tgz#e68bb5821e38a054da6885f035f29390b09287e5"
@@ -16026,6 +16031,13 @@ ses@^0.18.1, ses@^0.18.4, ses@^0.18.8:
1602616031
dependencies:
1602716032
"@endo/env-options" "^0.1.4"
1602816033

16034+
ses@^1.10.0:
16035+
version "1.10.0"
16036+
resolved "https://registry.yarnpkg.com/ses/-/ses-1.10.0.tgz#b611dd4605c6a1719665bac159cbd43c84d4f3a9"
16037+
integrity sha512-HXmJbNEgY/4hsQfaz5dna39vVKNyvlElRmJYk+bjTqSXSElT0Hr6NKwWVg4j0TxP6IuHp/PNMoWJKIRXzmLbAQ==
16038+
dependencies:
16039+
"@endo/env-options" "^1.1.8"
16040+
1602916041
ses@^1.8.0:
1603016042
version "1.8.0"
1603116043
resolved "https://registry.yarnpkg.com/ses/-/ses-1.8.0.tgz#8031ba3ce5bd55ced0e7a805c9cc906b9f5e29da"

0 commit comments

Comments
 (0)