This repository contains automated tests for the Essential Addons For Elementor using Playwright. The tests verify the functionality and visibility of various Essential Addons widgets and extensions.
- Repository: ObayedMamur/essential-addons-demopage-test-automation
- Description: Testing the Essential Addons For Elementor 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/ObayedMamur/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-depsCreate 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 testRun a specific test:
npx playwright test tests/woo-product-list.spec.jsRun tests with UI mode:
npx playwright test --uiTo update Playwright:
npm install -D @playwright/test@latestAfter updating Playwright, update browsers:
npx playwright install --with-depsThe 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