File tree Expand file tree Collapse file tree 1 file changed +39
-0
lines changed
test/deploy/onboarding-tests/roles/configure/tasks Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ - debug :
3
+ msg : Tests E2E
4
+
5
+ - name : Create directory
6
+ shell : " mkdir -p ~/tests && chmod 777 ~/tests"
7
+
8
+ - name : Clone the Onboarding tests repository
9
+ git :
10
+ repo : https://github.com/newrelic/onboarding-e2e-tests.git
11
+ dest : ~/tests/onboarding-e2e-tests
12
+
13
+ - name : Change directory for Onboarding tests
14
+ shell : " cd ~/tests/onboarding-e2e-tests && pwd"
15
+
16
+ - name : Create env file
17
+ shell : " touch ~/tests/onboarding-e2e-tests/.env"
18
+
19
+ - name : Store values in env file
20
+ shell : |
21
+ echo "ENV_SECRET_EMAIL='[email protected] ' \nENV_SECRET_PASSWORD='example'" >> ~/tests/onboarding-e2e-tests/.env
22
+
23
+ - name : Write Permissions for repo
24
+ shell : " chmod 755 ~/tests/onboarding-e2e-tests"
25
+
26
+ - name : npm install
27
+ shell : " npm install"
28
+ args :
29
+ chdir : ~/tests/onboarding-e2e-tests
30
+
31
+ - name : Install Playwright
32
+ shell :
" npx [email protected] install --with-deps chromium"
33
+ args :
34
+ chdir : ~/tests/onboarding-e2e-tests
35
+
36
+ - name : Test playwright scripts
37
+ shell : " npx playwright test"
38
+ args :
39
+ chdir : ~/tests/onboarding-e2e-tests
You can’t perform that action at this time.
0 commit comments