Skip to content
This repository has been archived by the owner on Feb 3, 2023. It is now read-only.

Migration to Playwright #85

Open
2 of 8 tasks
Martynienas opened this issue Dec 18, 2020 · 0 comments
Open
2 of 8 tasks

Migration to Playwright #85

Martynienas opened this issue Dec 18, 2020 · 0 comments

Comments

@Martynienas
Copy link

Martynienas commented Dec 18, 2020

Added long lived branch named Playwright:

Currently it's just a proof concept and most of the functionality is broken:

  • With some hacks managed to make Visual Regression example suite successfully execute on Chrome browser.

What is done:

  • Uninstalled all puppeteer dependencies

    • jest-puppeteer
    • puppeteer
  • Added Playwright dependencies:

    • playwright
    • jest-playwright-preset
    • eslint-plugin-jest-playwright

Hacks:

  • content of test-environment/setup.js is commented out - jest-environment-puppeteer is missing
  • jest.config.js global Setup and Teardown - also testEnvironment and setupFilesAfterEnv are commented out - relays on removed dependencies
  • Toggled of screenshots by default (fails if enabled)

Steps taken into right direction:

  • Added jest-playwright.config.js - configuration file for Playwright - currently contains the following settings:
    • Tests executed on Chrome,Firefox and Webkit
    • Executed in Headless mode
    • devtools: false,
  • Changed page.waitFor -> page.waitForSelector
  • page.setViewport ->page.setViewportSize

Following steps:

  • Fix global Setup
  • Fix global TearDown
  • Fix testEnvironment setup
  • Fix setupFilesAfterEnv setup
  • Fix remaining tests
  • Fix logging
  • Fix Screenshots
  • Fix Visual Regression tests to be able to handle screenshots based on browser it is executing on
ernestas-zekas added a commit that referenced this issue Jan 22, 2021
- Refactored interceptor class;
- Fixed interceptor example tests;
- Fixed elementsActions example tests.
- Updated readme file.
ernestas-zekas added a commit that referenced this issue Feb 4, 2021
…g tests on webkit;

- Refactored tests with new demo site.
ernestas-zekas added a commit that referenced this issue Feb 5, 2021
ernestas-zekas added a commit that referenced this issue Feb 9, 2021
- Refactored click method;
- Refactored doubleclick mehtod;
- Refactored right-click mehtod;
- Refactored hover mehtod;
- Removed goToUrlAndLoad method from helpers class;
- Removed goToUrlAndLoad example test.
ernestas-zekas added a commit that referenced this issue Feb 17, 2021
ernestas-zekas added a commit that referenced this issue Feb 18, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant