-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Access Token Permison Update - Publish Test Result - Send Slack Repor…
…t 100% Done
- Loading branch information
1 parent
f43ff4b
commit 5a487b7
Showing
2 changed files
with
22 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# EmbedPress Test Automation | ||
Testing the EmbedPress Plugin Using Playwright | ||
|
||
# About EmbedPress? | ||
# About EmbedPress | ||
|
||
EmbedPress – embed from unlimited sources – embed pdf with 3d flipbook viewer, embed youtube, social feeds, google docs, maps, vimeo, wistia, spotify, etc without coding & display in websites created with elementor, gutenberg block editor, or other page builders | ||
|
||
|
@@ -10,35 +10,31 @@ EmbedPress enhances the interactive storytelling on your WordPress website by of | |
Fuel up your website’s engagement and make it aesthetically pleasing by embedding content directly in Classic Editor, Gutenberg Block Editor, Elementor, or by using EmbedPress shortcodes on other WordPress page builders with ease. | ||
|
||
## Getting Started | ||
|
||
Install playwright using the following command: | ||
|
||
### Step 1 - Clone this repo | ||
```bash | ||
git clone [email protected]:nahidthenh/embedpress-playwright-automation.git | ||
|
||
``` | ||
### Step 2 - Install NPM | ||
```bash | ||
npm install -f | ||
|
||
npm init playwright@latest | ||
``` | ||
### Step 3 - Running the Script | ||
```bash | ||
npx playwright test | ||
Install dotenv: | ||
``` | ||
|
||
### Step 3.1 - Running a Specific Test | ||
```bash | ||
npx playwright test tests/gutenberg/modern_pdf.spec.js | ||
npm install dotenv@latest | ||
``` | ||
|
||
### Step 3.2 - Running a Specific Test on a Specific Browser | ||
```bash | ||
npx playwright test tests/gutenberg/modern_pdf.spec.js --project chromium | ||
Install playwright-slack-report | ||
``` | ||
|
||
### Step 3.3 - Running a Specific Test on a Specific Browser with headed mode | ||
```bash | ||
npx playwright test tests/gutenberg/modern_pdf.spec.js --project chromium --headed | ||
npm install playwright-slack-report@latest | ||
``` | ||
To update playwright: | ||
``` | ||
npm install -D @playwright/test@latest | ||
``` | ||
Usually after Playwright update, browsers need to be updated with command: | ||
``` | ||
npx playwright install --with-deps | ||
``` | ||
Install WordPress e2e test Utils For Playwright | ||
Documentation: https://github.com/WordPress/gutenberg/tree/trunk/packages/e2e-test-utils-playwright | ||
``` | ||
npm install @wordpress/e2e-test-utils-playwright | ||
``` | ||
Test Result | ||
Result: https://nahidthenh.github.io/embedpress-playwright-automation/ | ||
``` |