Skip to content

Commit 3ee4aa1

Browse files
authored
Create yaml file to clone and run onboarding e2e tests (#1006)
* refactor: Create yaml file to trigger E2E Tests * refactor: Change format in yaml file * Delete test/deploy/onboarding-tests/roles/configure/tasks/package-lock.json --------- Co-authored-by: pjarugula <pjarugula.newrelic.com>
1 parent 75e2fd2 commit 3ee4aa1

File tree

1 file changed

+39
-0
lines changed
  • test/deploy/onboarding-tests/roles/configure/tasks

1 file changed

+39
-0
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
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

0 commit comments

Comments
 (0)