This repository contains automated tests for the Essential Addons For Elementor Demo Pages using Playwright. The tests verify the functionality and visibility of various Essential Addons widgets and components.
- Repository: HurayraIIT/essential-addons-demopage-test-automation
- Description: Testing the Essential Addons For Elementor Demo Pages Using Playwright
- Created: June 20, 2024
src/pages/
: Page object models for different web pagestests/
: Test specifications for various Essential Addons widgetshelpers/
: Helper functions for testingglobal-setup.js
: Global setup configuration for testsplaywright.config.js
: Playwright configuration
- Node.js (latest LTS version recommended)
- npm (comes with Node.js)
- Clone the repository:
git clone https://github.com/HurayraIIT/essential-addons-demopage-test-automation.git
cd essential-addons-demopage-test-automation
- Install Playwright:
npm init playwright@latest
- Install all dependencies:
npm install
- Or install dependencies individually:
# Install Playwright
npm install -D @playwright/test@latest
# Install dotenv for environment variables
npm install dotenv@latest
# Install Playwright Slack Report
npm install playwright-slack-report@latest
# Install WordPress e2e test Utils (if needed)
npm install @wordpress/e2e-test-utils-playwright
- Install Playwright browsers:
npx playwright install --with-deps
Create a .env
file in the root directory with the following variables:
BASE_URL=https://essential-addons.com/elementor/demos/
SLACK_WEBHOOK_URL=your_slack_webhook_url (optional for Slack reporting)
Run all tests:
npx playwright test
Run a specific test:
npx playwright test tests/woo-product-list.spec.js
Run tests with UI mode:
npx playwright test --ui
To update Playwright:
npm install -D @playwright/test@latest
After updating Playwright, update browsers:
npx playwright install --with-deps
The project uses the following additional packages:
- dotenv: For environment variable management
- playwright-slack-report: For Slack integration with test results
- WordPress e2e test Utils For Playwright: For WordPress-specific testing utilities Documentation: WordPress E2E Test Utils