Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Automation] WPUF-lite: e2e testing for Login, Setup, PostForms and RegistrationForms #1365

Open
wants to merge 118 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
118 commits
Select commit Hold shift + click to select a range
2fabb29
Updated Test/e2e
Feb 2, 2023
831f0a1
Updated yml
Feb 2, 2023
85538bd
Updated yml
Feb 2, 2023
eba7c46
Updated Config
Feb 2, 2023
0d0f66e
Updated 0011
Feb 2, 2023
74447fa
Updated 00001
Feb 2, 2023
54dae6a
Updated 00002
Feb 2, 2023
90c533b
Updated 00003
Feb 2, 2023
eefe292
Updated 00004
Feb 2, 2023
975a5d5
Updated 00004 - Checking Lite
Feb 2, 2023
4634d1c
Updated 00005
Feb 2, 2023
8a5f44a
Updated 00006
Feb 2, 2023
536758a
Updated 00007
Feb 2, 2023
5125e69
Updated 00008
Feb 7, 2023
a652a5b
Updated 00009
Feb 7, 2023
af4678b
Updated 00009 - updated Script number
Feb 7, 2023
1b3c9da
Update yml for GitAction
Feb 15, 2023
3e86ba3
Update yml for GitAction 001
Feb 15, 2023
e3f917a
Update yml for GitAction 002
Feb 15, 2023
e25407d
Merge branch 'weDevsOfficial:develop' into automation/wpuf-e2e-pw
Rat01047 Feb 15, 2023
c5abe3f
WPUF Lite + Pro > Test 0001
Apr 4, 2023
dd92b76
WPUF Lite Updated > Test 0003
Apr 4, 2023
0eac335
WPUF Lite Updated > Test 0004
Apr 4, 2023
9fbc7b9
WPUF Lite Updated > Test 0005
Apr 4, 2023
2870338
WPUF Lite Updated > Test 0006
Apr 4, 2023
9b3324e
WPUF Lite Updated > Test 0007
Apr 4, 2023
d27b902
WPUF Lite Updated > Test 0008
Apr 4, 2023
77d0c80
WPUF Lite Updated > Test 0009
Apr 4, 2023
19a0195
WPUF Lite Updated > Test 00010
Apr 5, 2023
908c280
WPUF Lite Updated > Test 00011
Apr 5, 2023
9ec9722
WPUF Lite Updated > Test 00012
Apr 17, 2023
9c6ea83
WPUF Lite Updated > Test 00014
Apr 18, 2023
8a60c24
WPUF Lite Updated > Test 00015
Apr 18, 2023
46ebd4a
Updated File Naming
May 8, 2023
49a7bd5
Updated .env data
May 8, 2023
1ec9446
Updated .env data for Login
May 8, 2023
715da58
Updated .env data for Login in multiple files
May 9, 2023
516bef9
Updated Post Forms Scripts
May 9, 2023
6071424
Updated Post Forms Scripts v1
May 9, 2023
7c6af6b
Updated Scripts and Faker Data
May 9, 2023
ac57440
Formattted Scripts
May 11, 2023
3c5920b
Formattted Scripts for Run: 0001
May 11, 2023
139d5e7
Formattted Scripts for Run: 0002
May 11, 2023
4b58ef7
Formattted Scripts for Run: 0003
May 11, 2023
bd2fbc6
Formattted Scripts for Run: 0004
May 12, 2023
ced4808
Formattted Scripts for Run: 0005
May 16, 2023
d51974f
Formattted Scripts for Run: 0006
May 16, 2023
4ef740b
Formattted Scripts for Run: 0007
May 16, 2023
c72c805
Formattted Scripts for Run: 0009
May 16, 2023
db6fbba
Formattted Scripts for Run: 00010
May 16, 2023
fb425e8
Formattted Scripts for Run: 00011
May 16, 2023
6c15972
Debugging url issue
May 16, 2023
893614d
Moved all Selectors to 1 file + remove extra folders
May 23, 2023
4d8b876
Resolved issues in yml PW
May 23, 2023
4a40995
Resolved issues in yml PW and updated ReadMe
May 23, 2023
9e9b3ce
Resolved issue for Blank form with all Fields validation
May 23, 2023
3aa24cb
Resolved issue for Blank form with all Fields validation
May 23, 2023
e659cba
Updated file paths
May 23, 2023
a4bfaa9
Integrated Scenarios for WPUF RegForm Check + RegForm FrontEnd Submis…
Jun 9, 2023
770dd7d
Updated package.json project name
Jun 9, 2023
8471295
Updated to an older version
Jun 9, 2023
ee715d9
Updated Registration Test Scenarios again
Jun 9, 2023
4dacae0
Run Full suite - 0001
Jun 9, 2023
150b7a2
Run Full suite - 0001
Jun 9, 2023
6d46ab2
Run Full suite - 0002
Jun 9, 2023
90ba98c
Run Full suite - 0003
Jun 9, 2023
ae14667
Added Promise to all + Added New User addition + added PostForm FE Su…
Jun 13, 2023
862ce6d
Updated yml
Jun 13, 2023
62ef150
Updated codebase for Failed cases
Jun 14, 2023
afbdc34
Updated Case 0018 and Case 0008
Jun 14, 2023
33711cb
Updated Case 0018 and Case 0008 - changed flow
Jun 14, 2023
3ffd1c2
Updated Case 0018 and Case 0008 - changed flow v2
Jun 14, 2023
781332f
Updated Case 0018 and Case 0008 - changed flow v3
Jun 14, 2023
1b4850a
Updated Case 0018 and Case 0008 - changed flow v4
Jun 14, 2023
12cc065
Updated Case 0018 and Case 0008 - changed flow v5
Jun 14, 2023
5267dd1
Updated Case 0018 and Case 0008 - changed flow v6
Jun 14, 2023
bcf7b98
Revamp of Test suites
Jun 20, 2023
4758c0f
Revamp of Test suites 001
Jun 20, 2023
eb52a52
Revamp of Test suites 002
Jun 20, 2023
49806b5
Revamp of Test suites 003
Jun 20, 2023
6e0439d
Revamp of Test suites 005
Jun 21, 2023
ebf1ce0
Revamp of Test suites 006
Jun 21, 2023
1bd15b7
Revamp of Test suites 007
Jun 21, 2023
c0e2864
Revamp of Test suites 008
Jun 21, 2023
cf8d575
Revamp of Test suites 009
Jun 21, 2023
5ef08d4
Revamp of Test suites 0010
Jun 21, 2023
7ff7d8f
Revamp of Test suites 0011
Jun 21, 2023
ffa63b0
Revamp of Test suites 0012
Jun 21, 2023
906b3b7
Update README.md
Rat01047 Jun 21, 2023
6cfdd79
Update README.md
Rat01047 Jun 21, 2023
310e2bf
Update README.md
Rat01047 Jun 21, 2023
d79ad1c
Update README.md
Rat01047 Jun 21, 2023
f77fbb3
Update README.md
Rat01047 Jun 21, 2023
24420d0
Update README.md
Rat01047 Jun 21, 2023
f4f158e
Update README.md
Rat01047 Jun 21, 2023
f505752
Update README.md
Rat01047 Jun 21, 2023
f77e850
Update README.md
Rat01047 Jun 21, 2023
7041bd7
Update README.md
Rat01047 Jun 21, 2023
d227318
Update README.md
Rat01047 Jun 21, 2023
dea271c
Update README.md
Rat01047 Jun 21, 2023
ee75b50
Revamp of Test suites 0013
Jun 22, 2023
b057613
Revamp of Test suites 0014
Jun 26, 2023
5d6643c
Revamp of Test suites 0015
Jul 6, 2023
8099029
Revamp of Test suites 0016
Jul 13, 2023
a3ce253
Update README.md
Rat01047 Jul 21, 2023
3a52672
Update README.md
Rat01047 Jul 21, 2023
91e154d
Update README.md
Rat01047 Jul 21, 2023
c78495f
Updated registrationform page creation using shortcode
Aug 3, 2023
29619c2
Merge branch 'automation/wpuf-e2e-pw' of https://github.com/Rat01047/…
Aug 3, 2023
b7c972d
Updated locators
Aug 3, 2023
6a0ddee
Updated Suite with some formats
Feb 12, 2024
6294a78
Updated Suite and reran tests
Feb 12, 2024
e98a1e7
resolved package-lock.json issue
Feb 13, 2024
4893a9d
Reran WPUF-lite test suite
Feb 13, 2024
a0b3205
Added Subscription Scenario
Feb 28, 2024
482b9b3
Revamped data-set
Mar 27, 2024
2ecea9f
Updated project details - v1
May 2, 2024
1cd1439
Added coverage
Aug 8, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
122 changes: 122 additions & 0 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
name: Playwright tests/e2e
on:
push:
branches: [ develop, automation/wpuf-e2e-pw ]
pull_request:
branches: [ develop ]



jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest

#Cloning WPUF-Lite + WPUF-PRO
steps:

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: "7.3"

- uses: actions/checkout@v3
# with:
# ref: 'automation/wpuf-e2e-pw'


- uses: actions/setup-node@v3
with:
node-version: '14.x'



- name: Composer install and build (WPUF-lite)
run: |
composer update
composer install
composer dump-autoload -o

- name: Npm install and build (WPUF-lite)
run: |
npm i
grunt release



- name: Install dependencies
run: |
cd tests/e2e
npm ci

- name: Install Playwright Browsers
run: |
cd tests/e2e
npx playwright install chromium


- name: Setup WordPress
run: |
cd tests/e2e
npm run wp-env start


- name: Run Playwright tests/e2e
run: |
cd tests/e2e
npx playwright test e2eMain.spec.ts --project=chromium
ls


env:
BASE_URL: ${{ secrets.QA_BASE_URL}}
CI: true
ADMIN_USERNAME: ${{ secrets.QA_ADMIN_USERNAME }}
ADMIN_PASSWORD: ${{ secrets.QA_ADMIN_PASSWORD }}



#######--- Remove Later ---#######
- name: Publish Test Report
uses: mikepenz/action-junit-report@v3
if: always() # always run even if the previous step fails
with:
report_paths: "tests/e2e/playwright-report/results.xml"
include_passed: true,
# check_retries: true,
# detailed_summary: true,

#######--- Remove Later ---#######



- name: Archive playwright artifacts (screenshots, HTML snapshots, videos)
uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: tests/e2e/playwright-report
if-no-files-found: ignore
retention-days: 30

# - name: Publish HTML report to GH Pages
# if: always() # We want this to always run, even if test fail prior to this step running
# uses: peaceiris/[email protected]
# with:
# github_token: ${{ secrets.ACCESS_TOKEN }}
# publish_dir: tests/e2e/playwright-report # This is where index.html will be output
# keep_files: true # Set this to true to make sure we don't wipe out the other content in GitHub Pages
# user_name: "github-actions[bot]" # This will be the username that gets stamped in the repo commit
# user_email: "github-actions[bot]@users.noreply.github.com" # This will be the user email that gets stamped in the repo commit

- name: Test results
if: always()
run: |
echo "url is https://$GITHUB_REPOSITORY_OWNER.github.io/${GITHUB_REPOSITORY#*/}"







Loading