forked from OasisDEX/e2e-tests
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
138 lines (138 loc) · 13.9 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
{
"name": "e2e-tests",
"version": "1.0.0",
"description": "E2E tests automation for oasis-borrow",
"main": "index.js",
"author": "juan-langa <juan@oazoapps.com>",
"license": "Apache-2.0",
"devDependencies": {
"@ethersproject/providers": "^5.7.2",
"@inquirer/prompts": "^3.3.0",
"@playwright/test": "^1.37.1",
"@synthetixio/synpress": "^3.7.2-beta.10",
"axios": "^1.6.0",
"dotenv": "^16.3.1",
"ethers": "^6.7.1"
},
"scripts": {
"no-wallet": "REPORT_FOLDER=no-wallet npx playwright test --project=no-wallet",
"no-wallet:portfolio": "REPORT_FOLDER=no-wallet-portfolio npx playwright test --project=no-wallet-portfolio",
"with-wallet:aave:ethereum": "REPORT_FOLDER=with-wallet-aave-ethereum npx playwright test --project=with-wallet-aave-ethereum --workers=1",
"with-wallet:aave:other": "REPORT_FOLDER=with-wallet-aave-other npx playwright test --project=with-wallet-aave-other --workers=1",
"with-wallet:aave:arbitrum": "REPORT_FOLDER=with-wallet-aave-arbitrum npx playwright test --project=with-wallet-aave-arbitrum --workers=1",
"with-wallet:aave:base": "REPORT_FOLDER=with-wallet-aave-base npx playwright test --project=with-wallet-aave-base --workers=1",
"with-wallet:aave:optimism": "REPORT_FOLDER=with-wallet-aave-optimism npx playwright test --project=with-wallet-aave-optimism --workers=1",
"with-wallet:aave:arbitrum-and-optimism": "REPORT_FOLDER=with-wallet-aave-arbitrum-and-optimism npx playwright test --project=with-wallet-aave-arbitrum-and-optimism --workers=1",
"with-wallet:ajna-and-morphoblue": "REPORT_FOLDER=with-wallet-ajna-and-morphoblue npx playwright test --project=with-wallet-ajna-and-morphoblue --workers=1",
"with-wallet:ajna": "REPORT_FOLDER=with-wallet-ajna npx playwright test --project=with-wallet-ajna --workers=1",
"with-wallet:ajna:ethereum": "REPORT_FOLDER=with-wallet-ajna-ethereum npx playwright test --project=with-wallet-ajna-ethereum --workers=1",
"with-wallet:ajna:arbitrum": "REPORT_FOLDER=with-wallet-ajna-arbitrum npx playwright test --project=with-wallet-ajna-arbitrum --workers=1",
"with-wallet:ajna:base": "REPORT_FOLDER=with-wallet-ajna-base npx playwright test --project=with-wallet-ajna-base --workers=1",
"with-wallet:ajna:optimism": "REPORT_FOLDER=with-wallet-ajna-optimism npx playwright test --project=with-wallet-ajna-optimism --workers=1",
"with-wallet:morphoblue": "REPORT_FOLDER=with-wallet-morphoblue npx playwright test --project=with-wallet-morphoblue --workers=1",
"with-wallet:morphoblue:ethereum": "REPORT_FOLDER=with-wallet-morphoblue-ethereum npx playwright test --project=with-wallet-morphoblue-ethereum --workers=1",
"with-wallet:maker-and-spark": "REPORT_FOLDER=with-wallet-maker-and-spark npx playwright test --project=with-wallet-maker-and-spark --workers=1",
"with-wallet:spark:ethereum": "REPORT_FOLDER=with-wallet-spark-ethereum npx playwright test --project=with-wallet-spark-ethereum --workers=1",
"with-wallet:maker:ethereum": "REPORT_FOLDER=with-wallet-maker-ethereum npx playwright test --project=with-wallet-maker-ethereum --workers=1",
"with-wallet:all": "yarn with-wallet:aave:ethereum & yarn with-wallet:aave:other & yarn with-wallet:ajna-and-morphoblue & yarn with-wallet:maker-and-spark",
"test:e2e": "yarn no-wallet & yarn with-wallet:all",
"//-1a": "---------------------------------------------------------------",
"//-1b": "---------------------- REGRESSION TESTS -----------------------",
"//-1c": "---------------------------------------------------------------",
"no-wallet:regression": "REPORT_FOLDER=no-wallet npx playwright test --grep @regression --project=no-wallet",
"with-wallet:aave:ethereum:regression": "REPORT_FOLDER=with-wallet-aave-ethereum npx playwright test --grep @regression --project=with-wallet-aave-ethereum --workers=1",
"with-wallet:aave:other:regression": "REPORT_FOLDER=with-wallet-aave-other npx playwright test --grep @regression --project=with-wallet-aave-other --workers=1",
"with-wallet:aave:arbitrum:regression": "REPORT_FOLDER=with-wallet-aave-arbitrum npx playwright test --grep @regression --project=with-wallet-aave-arbitrum --workers=1",
"with-wallet:aave:base:regression": "REPORT_FOLDER=with-wallet-aave-base npx playwright test --grep @regression --project=with-wallet-aave-base --workers=1",
"with-wallet:aave:optimism:regression": "REPORT_FOLDER=with-wallet-aave-optimism npx playwright test --grep @regression --project=with-wallet-aave-optimism --workers=1",
"with-wallet:aave:arbitrum-and-optimism:regression": "REPORT_FOLDER=with-wallet-aave-arbitrum-and-optimism npx playwright test --grep @regression --project=with-wallet-aave-arbitrum-and-optimism --workers=1",
"with-wallet:ajna-and-morphoblue:regression": "REPORT_FOLDER=with-wallet-ajna-and-morphoblue npx playwright test --grep @regression --project=with-wallet-ajna-and-morphoblue --workers=1",
"with-wallet:ajna:regression": "REPORT_FOLDER=with-wallet-ajna npx playwright test --grep @regression --project=with-wallet-ajna --workers=1",
"with-wallet:ajna:ethereum:regression": "REPORT_FOLDER=with-wallet-ajna-ethereum npx playwright test --grep @regression --project=with-wallet-ajna-ethereum --workers=1",
"with-wallet:ajna:arbitrum:regression": "REPORT_FOLDER=with-wallet-ajna-arbitrum npx playwright test --grep @regression --project=with-wallet-ajna-arbitrum --workers=1",
"with-wallet:ajna:base:regression": "REPORT_FOLDER=with-wallet-ajna-base npx playwright test --grep @regression --project=with-wallet-ajna-base --workers=1",
"with-wallet:ajna:optimism:regression": "REPORT_FOLDER=with-wallet-ajna-optimism npx playwright test --grep @regression --project=with-wallet-ajna-optimism --workers=1",
"with-wallet:morphoblue:ethereum:regression": "REPORT_FOLDER=with-wallet-morphoblue-ethereum npx playwright test --grep @regression --project=with-wallet-morphoblue-ethereum --workers=1",
"with-wallet:maker-and-spark:regression": "REPORT_FOLDER=with-wallet-maker-and-spark npx playwright test --grep @regression --project=with-wallet-maker-and-spark --workers=1",
"with-wallet:spark:ethereum:regression": "REPORT_FOLDER=with-wallet-spark-ethereum npx playwright test --grep @regression --project=with-wallet-spark-ethereum --workers=1",
"with-wallet:maker:ethereum:regression": "REPORT_FOLDER=with-wallet-maker-ethereum npx playwright test --grep @regression --project=with-wallet-maker-ethereum --workers=1",
"with-wallet:all:regression": "yarn with-wallet:aave:ethereum:regression & yarn with-wallet:aave:other:regression & yarn with-wallet:ajna-and-morphoblue:regression & yarn with-wallet:maker-and-spark:regression",
"test:e2e:regression": "yarn no-wallet:regression & yarn with-wallet:all:regression",
"//-2a": "---------------------------------------------------------------",
"//-2b": "---------------------- CI REGRESSION TESTS -----------------------",
"//-2c": "---------------------------------------------------------------",
"ci:no-wallet:regression": "WORKERS='2' FULLY_PARALLEL='true' RETRIES='2' yarn no-wallet:regression",
"ci:with-wallet:aave:ethereum:regression": "xvfb-run yarn with-wallet:aave:ethereum:regression",
"ci:with-wallet:aave:other:regression": "xvfb-run yarn with-wallet:aave:other:regression",
"ci:with-wallet:aave:arbitrum:regression": "xvfb-run yarn with-wallet:aave:arbitrum:regression",
"ci:with-wallet:aave:base:regression": "xvfb-run yarn with-wallet:aave:base:regression",
"ci:with-wallet:aave:optimism:regression": "xvfb-run yarn with-wallet:aave:optimism:regression",
"ci:with-wallet:aave:arbitrum-and-optimism:regression": "xvfb-run yarn with-wallet:aave:arbitrum-and-optimism:regression",
"ci:with-wallet:ajna-and-morphoblue:regression": "xvfb-run yarn with-wallet:ajna-and-morphoblue:regression",
"ci:with-wallet:ajna:regression": "xvfb-run yarn with-wallet:ajna:regression",
"ci:with-wallet:ajna:ethereum:regression": "xvfb-run yarn with-wallet:ajna:ethereum:regression",
"ci:with-wallet:ajna:arbitrum:regression": "xvfb-run yarn with-wallet:ajna:arbitrum:regression",
"ci:with-wallet:ajna:base:regression": "xvfb-run yarn with-wallet:ajna:base:regression",
"ci:with-wallet:ajna:optimism:regression": "xvfb-run yarn with-wallet:ajna:optimism:regression",
"ci:with-wallet:morphoblue:ethereum:regression": "xvfb-run yarn with-wallet:morphoblue:ethereum:regression",
"ci:with-wallet:maker-and-spark:regression": "xvfb-run yarn with-wallet:maker-and-spark:regression",
"ci:with-wallet:spark:ethereum:regression": "xvfb-run yarn with-wallet:spark:ethereum:regression",
"ci:with-wallet:maker:ethereum:regression": "xvfb-run yarn with-wallet:maker:ethereum:regression",
"//-3a": "---------------------------------------------------------------",
"//-3b": "---------------------- NIGHTLY TESTS -----------------------",
"//-3c": "---------------------------------------------------------------",
"nightly:no-wallet": "WORKERS='2' FULLY_PARALLEL='true' RETRIES='2' yarn no-wallet",
"nightly:with-wallet:aave:ethereum": "RETRIES='2' xvfb-run yarn with-wallet:aave:ethereum",
"nightly:with-wallet:aave:other": "RETRIES='2' xvfb-run yarn with-wallet:aave:other",
"nightly:with-wallet:ajna-and-morphoblue": "RETRIES='2' xvfb-run yarn with-wallet:ajna-and-morphoblue",
"nightly:with-wallet:maker-and-spark": "RETRIES='2' xvfb-run yarn with-wallet:maker-and-spark",
"//-4a": "---------------------------------------------------------------",
"//-4b": "---------- PORTFOLIO (Staging vs Production) TESTS ------------",
"//-4c": "---------------------------------------------------------------",
"portfolio:staging-vs-production": "WORKERS='3' FULLY_PARALLEL='true' RETRIES='2' yarn no-wallet:portfolio",
"//-5a": "---------------------------------------------------------------",
"//-5b": "---------- SWAP TESTS ------------",
"//-5c": "---------------------------------------------------------------",
"with-wallet:swap": "REPORT_FOLDER=with-wallet-swap npx playwright test --project=with-wallet-swap --workers=1",
"with-wallet:swap:aavev3": "REPORT_FOLDER=with-wallet-swap-aavev3 npx playwright test --project=with-wallet-swap-aavev3 --workers=1",
"with-wallet:swap:maker": "REPORT_FOLDER=with-wallet-swap-maker npx playwright test --project=with-wallet-swap-maker --workers=1",
"with-wallet:swap:morphoblue": "REPORT_FOLDER=with-wallet-swap-morphoblue npx playwright test --project=with-wallet-swap-morphoblue --workers=1",
"with-wallet:swap:spark": "REPORT_FOLDER=with-wallet-swap-spark npx playwright test --project=with-wallet-swap-spark --workers=1",
"ci:with-wallet:swap": "RETRIES='2' xvfb-run yarn with-wallet:swap",
"ci:with-wallet:swap:aavev3": "RETRIES='2' xvfb-run yarn with-wallet:swap:aavev3",
"ci:with-wallet:swap:maker": "RETRIES='2' xvfb-run yarn with-wallet:swap:maker",
"ci:with-wallet:swap:morphoblue": "RETRIES='2' xvfb-run yarn with-wallet:swap:morphoblue",
"ci:with-wallet:swap:spark": "RETRIES='2' xvfb-run yarn with-wallet:swap:spark",
"//-9a": "---------------------------------------------------------------",
"//-9b": "---------------------- REPORTS --------------------------------",
"//-9c": "---------------------------------------------------------------",
"test:report:no-wallet": "npx playwright show-report playwright-reports/no-wallet",
"test:report:no-wallet-portfolio": "npx playwright show-report playwright-reports/no-wallet-portfolio",
"test:report:with-wallet:aave:ethereum": "npx playwright show-report playwright-reports/with-wallet-aave-ethereum",
"test:report:with-wallet:aave:other": "npx playwright show-report playwright-reports/with-wallet-aave-other",
"test:report:with-wallet:aave:arbitrum": "npx playwright show-report playwright-reports/with-wallet-aave-arbitrum",
"test:report:with-wallet:aave:base": "npx playwright show-report playwright-reports/with-wallet-aave-base",
"test:report:with-wallet:aave:optimism": "npx playwright show-report playwright-reports/with-wallet-aave-optimism",
"test:report:with-wallet:aave:arbitrum-and-optimism": "npx playwright show-report playwright-reports/with-wallet-aave-arbitrum-and-optimism",
"test:report:with-wallet:ajna-and-morphoblue": "npx playwright show-report playwright-reports/with-wallet-ajna-and-morphoblue",
"test:report:with-wallet:ajna": "npx playwright show-report playwright-reports/with-wallet-ajna",
"test:report:with-wallet:ajna:ethereum": "npx playwright show-report playwright-reports/with-wallet-ajna-ethereum",
"test:report:with-wallet:ajna:arbitrum": "npx playwright show-report playwright-reports/with-wallet-ajna-arbitrum",
"test:report:with-wallet:ajna:base": "npx playwright show-report playwright-reports/with-wallet-ajna-base",
"test:report:with-wallet:ajna:optimism": "npx playwright show-report playwright-reports/with-wallet-ajna-optimism",
"test:report:with-wallet:morphoblue:ethereum": "npx playwright show-report playwright-reports/with-wallet-morphoblue-ethereum",
"test:report:with-wallet:maker-and-spark": "npx playwright show-report playwright-reports/with-wallet-maker-and-spark",
"test:report:with-wallet:spark:ethereum": "npx playwright show-report playwright-reports/with-wallet-spark-ethereum",
"test:report:with-wallet:maker:ethereum": "npx playwright show-report playwright-reports/with-wallet-maker-ethereum",
"test:report:with-wallet:swap": "npx playwright show-report playwright-reports/with-wallet-swap",
"test:report:with-wallet:swap:aavev3": "npx playwright show-report playwright-reports/with-wallet-swap-aavev3",
"test:report:with-wallet:swap:maker": "npx playwright show-report playwright-reports/with-wallet-swap-maker",
"test:report:with-wallet:swap:morphoblue": "npx playwright show-report playwright-reports/with-wallet-swap-morphoblue",
"test:report:with-wallet:swap:spark": "npx playwright show-report playwright-reports/with-wallet-swap-spark",
"//-10a": "---------------------------------------------------------------",
"//-10b": "---------------------- MANUAL TESTING UTILS --------------------------------",
"//-10c": "---------------------------------------------------------------",
"create-fork": "npx ts-node utilsManualTesting/createFork.ts",
"create-fork-github": "npx ts-node utilsManualTesting/createForkGithub.ts"
}
}