question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[REGRESSION]: bundled WebKit renders websites built with Angular/React incorrectly since v1.25.0

See original GitHub issue

Context:

  • GOOD Playwright Version: <=1.24.2
  • BAD Playwright Version: >1.25.0
  • Operating System: Microsoft Windows 10 Version 21H2 (OS Build 19044.1826)
  • Extra: Node v16.14.2, Yarn v1.22.4

Code Snippet

Basically, everything made via the API got 2-5 times slower. For example page.goto:

playwright.config.js

const { devices } = require('@playwright/test')

const config = {
  use: {
    browserName: 'webkit',
    ...devices['iPhone 11']
  }  
}

module.exports = config

example.test.js

const { test, expect } = require('@playwright/test')

test.describe.serial('flight search', () => {
  let page
  test.beforeAll(async ({ browser }) => page = await browser.newPage())
  test.afterAll(async () => await page.close())

  test('should be opened on page', async () => {
    await page.goto('https://www.delta.com/eu/en')
  })
})

Describe the bug

Since the version v1.25.0 the bundled/patched Webkit won’t render correctly most pages built with Angular or React on Windows OS. I believe for the same reason but the Webkit tests got extremely slow if we try to upgrade anywhere above v1.24.2. Let me share some example websites where the issue can be reproduced:

As far as I see it has nothing to do with Playwright or Playwright Test libraries, but the patched Webkit executable itself. You can even reproduce this without Playwright simply by opening the Webkit executable on a Windows machine and visiting any of the sites I’ve listed above.

Works and renders correctly on webkit-1683:

C:\Users\theDa\AppData\Local\ms-playwright\webkit-1683\Playwright.exe

image

Faulty on patched Webkits bundled since 1.25 (e.g. webkit-1715):

C:\Users\theDa\AppData\Local\ms-playwright\webkit-1715\Playwright.exe

  1. dropdown got slow and laggy
  2. background-image rendering issues (you can see this on many of the above example websites, that is the most visible symptom)
  3. floating elements disappearing from the viewport e.g. cookie consent

image

The issue 1.) is the most worrisome and it prevents us from upgrading Playwright.

I’ve noticed there were some changes regarding Webkit patching between 1.24.2 and 1.25.0, I am pretty sure that is the issue. I haven’t found others reporting this (or they just didn’t use the same keywords to describe the issue) but I think this would be worth a fix for those who have sites built in a similar way and they want to test against Safari 😅

Thank you!

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
testgitdlcommented, Oct 17, 2022

Tested on 1.28.0-alpha-oct-17-2022 and my problem is fixed https://github.com/microsoft/playwright/issues/17614 Thank you!

1reaction
dgozmancommented, Oct 24, 2022

@theDavidBarton run npm install --save-dev @playwright/test@1.28.0-alpha-oct-17-2022

Read more comments on GitHub >

github_iconTop Results From Across the Web

[REGRESSION]: bundled WebKit renders websites built with ...
Since the version v1.25.0 the bundled/patched Webkit won't render correctly most pages built with Angular or React on Windows OS.
Read more >
Angular Tutorial for Beginners: Learn Angular & TypeScript
Angular tutorial for beginners: Learn Angular & TypeScript from scratch. Enjoyed this video? Please vote for me as the Top Programming ...
Read more >
NgtSobaOrbitControls missing update - nartc/angular-three ...
playwright [REGRESSION]: bundled WebKit renders websites built with Angular/React incorrectly since v1.25.0 3 ; three.js Support rotating ...
Read more >
MBS RegEx Plugin Documentation - MonkeyBread Software
3.8.25 ExecuteMT(text as string, start as Integer = 0) as Integer ... The RegExMBS class has different defaults as the built in RegEx...
Read more >
Sanity - Faama Portal
Order search results by relevance, created and last updated date. ... The Portable Text Editor should be faster and re-render less often ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found