Skip to content

Commit e1a018d

Browse files
committed
chore: remove setup script
1 parent 424cd57 commit e1a018d

File tree

16 files changed

+21
-43
lines changed

16 files changed

+21
-43
lines changed

.github/workflows/test.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,5 @@ jobs:
2020
run: npm run build
2121
- name: Install Playwright Browser
2222
run: npx playwright install chrome
23-
- name: Install Browser Extension
24-
run: npm run setup
2523
- name: Run All Tests
2624
run: xvfb-run npm test

README.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,6 @@ Install Playwright Browser
2929
npx playwright install chrome
3030
```
3131

32-
Install Browser Extension
33-
34-
```
35-
npm run setup
36-
```
37-
3832
Run All Tests
3933

4034
```

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
"scripts": {
1717
"build": "npm run build -ws --if-present",
1818
"clean": "rm -rf node_modules package-lock.json && npm run clean -ws",
19-
"setup": "npm run setup -ws --if-present",
2019
"test": "npm test -ws --if-present"
2120
},
2221
"private": "true",

packages/cucumber/README.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,6 @@ Install Playwright Browser
2222
npx playwright install chrome
2323
```
2424

25-
Install Browser Extension
26-
27-
```
28-
npm run setup
29-
```
30-
3125
Run All Tests
3226

3327
```

packages/cucumber/features/support/hooks.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import { Dapp } from "@assert-equals/dappdriver-examples-page-objects";
99
import { After, Before } from "@cucumber/cucumber";
1010
import dotenv from "dotenv";
1111
import { TestDapp } from "@assert-equals/dappdriver-examples-test-dapp";
12+
import path from "path";
1213

1314
dotenv.config({ path: "../../.env" });
1415
let server = new TestDapp(3000);
@@ -19,6 +20,10 @@ Before(async (): Promise<void> => {
1920
extension: {
2021
wallet: METAMASK,
2122
seed: process.env.DAPPDRIVER_SEED_PHRASE,
23+
path: path.join(
24+
process.cwd(),
25+
"../../node_modules/@assert-equals/dappdriver/metamask-chrome-12.17.3"
26+
),
2227
},
2328
};
2429
await DappDriver.create<Dapp>(

packages/cucumber/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
"description": "An example to help demonstrate using DappDriver and Cucumber to test a sample dapp",
55
"scripts": {
66
"clean": "rm -rf node_modules",
7-
"setup": "npx dappdriver",
87
"test": "cucumber-js"
98
},
109
"keywords": [
@@ -18,7 +17,7 @@
1817
],
1918
"license": "MIT",
2019
"devDependencies": {
21-
"@assert-equals/dappdriver": "latest",
20+
"@assert-equals/dappdriver": "0.34.1",
2221
"@assert-equals/dappdriver-examples-page-objects": "*",
2322
"@assert-equals/dappdriver-examples-test-dapp": "*",
2423
"@cucumber/cucumber": "^11.1.0",

packages/jest/README.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,6 @@ Install Playwright Browser
2222
npx playwright install chrome
2323
```
2424

25-
Install Browser Extension
26-
27-
```
28-
npm run setup
29-
```
30-
3125
Run All Tests
3226

3327
```

packages/jest/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
"description": "An example to help demonstrate using DappDriver and Jest to test a sample dapp",
55
"scripts": {
66
"clean": "rm -rf node_modules",
7-
"setup": "npx dappdriver",
87
"test": "jest"
98
},
109
"keywords": [
@@ -18,7 +17,7 @@
1817
],
1918
"license": "MIT",
2019
"devDependencies": {
21-
"@assert-equals/dappdriver": "latest",
20+
"@assert-equals/dappdriver": "0.34.1",
2221
"@assert-equals/dappdriver-examples-page-objects": "*",
2322
"@assert-equals/dappdriver-examples-test-dapp": "*",
2423
"@types/jest": "^29.5.14",

packages/jest/test/test-dapp.test.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import { Dapp } from "@assert-equals/dappdriver-examples-page-objects";
99
import { Connect } from "@assert-equals/dappdriver/wallet";
1010
import * as dotenv from "dotenv";
1111
import { TestDapp } from "@assert-equals/dappdriver-examples-test-dapp";
12+
import path from "path";
1213

1314
describe("E2E Test Dapp", (): void => {
1415
dotenv.config({ path: "../../.env" });
@@ -21,6 +22,10 @@ describe("E2E Test Dapp", (): void => {
2122
extension: {
2223
wallet: METAMASK,
2324
seed: process.env.DAPPDRIVER_SEED_PHRASE,
25+
path: path.join(
26+
process.cwd(),
27+
"../../node_modules/@assert-equals/dappdriver/metamask-chrome-12.17.3"
28+
),
2429
},
2530
};
2631
dapp = await DappDriver.create<Dapp>(

packages/mocha/README.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,6 @@ Install Playwright Browser
2222
npx playwright install chrome
2323
```
2424

25-
Install Browser Extension
26-
27-
```
28-
npm run setup
29-
```
30-
3125
Run All Tests
3226

3327
```

0 commit comments

Comments
 (0)