Skip to content

HurayraIIT/essential-addons-demopage-test-automation

Repository files navigation

Essential Addons Demopage Test Automation

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 Information

Project Structure

  • src/pages/: Page object models for different web pages
  • tests/: Test specifications for various Essential Addons widgets
  • helpers/: Helper functions for testing
  • global-setup.js: Global setup configuration for tests
  • playwright.config.js: Playwright configuration

Getting Started

Prerequisites

  • Node.js (latest LTS version recommended)
  • npm (comes with Node.js)

Installation

  1. Clone the repository:
git clone https://github.com/HurayraIIT/essential-addons-demopage-test-automation.git
cd essential-addons-demopage-test-automation
  1. Install Playwright:
npm init playwright@latest
  1. Install all dependencies:
npm install
  1. 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
  1. Install Playwright browsers:
npx playwright install --with-deps

Environment Setup

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)

Running Tests

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

Updating Dependencies

To update Playwright:

npm install -D @playwright/test@latest

After updating Playwright, update browsers:

npx playwright install --with-deps

Additional Packages

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

About

Testing the Essential Addons For Elementor Demo Pages Using Playwright

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •