Skip to content

Commit

Permalink
Access Token Permison Update - Publish Test Result - Send Slack Repor…
Browse files Browse the repository at this point in the history
…t 100% Done
  • Loading branch information
nahidthenh committed Jan 2, 2025
1 parent f43ff4b commit 5a487b7
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 30 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,6 @@ jobs:
run: npx playwright test --project=chromium --workers=4
continue-on-error: true # Ensures workflow continues even if tests fail

# - name: Move HTML Report
# run: mv playwright-report /tmp/playwright-report
# continue-on-error: true # Ensures workflow continues even if tests fail

- name: Upload Playwright report
if: ${{ !cancelled() }}
uses: actions/upload-artifact@v4
Expand Down
48 changes: 22 additions & 26 deletions readme.md
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

Expand All @@ -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/
```

0 comments on commit 5a487b7

Please sign in to comment.