Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade Playwright to the latest version 1.49.1 #1154

Open
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

iAmmar7
Copy link
Collaborator

@iAmmar7 iAmmar7 commented Dec 27, 2024

Description

Upgrade to the latest version in e2e test for both JS and Realtime-API packages.

Type of change

  • Internal refactoring
  • Bug fix (bugfix - non-breaking)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Code snippets

In case of new feature or breaking changes, please include code snippets.

Copy link

changeset-bot bot commented Dec 27, 2024

⚠️ No Changeset found

Latest commit: 3c364d8

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@@ -13,7 +13,6 @@
"vite": "^5.4.10"
},
"devDependencies": {
"@playwright/test": "^1.35.1",
"playwrigth-ws-inspector": "^1.0.0"
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had to remove this dependency because the Playwright failed with the latest version. @jpsantosbh, could you please check if we need this package anymore? It seems this dependency itself is using the Playwright, which is incompatible with the latest version.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's used in one test
I'll update the Playwright version in that package and do a new release

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done, just update it to [email protected] it's using the same Playwrigth version.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Which test is using it? I couldn't find the error in the CI related to this dependency.

Also, is it a private package? Redirecting to the GitHub page mentioned on NPM leads me to the 404 page. https://www.npmjs.com/package/playwrigth-ws-inspector

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just update it to [email protected] it's using the same Playwrigth version.

Done, but now the CI is red again with the same error. @jpsantosbh

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

something is weird...
Playwrigth is just a dev dependency on playwrigth-ws-inspector

It should not clash...

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the test that uses it:
https://github.com/signalwire/signalwire-js/blob/main/internal/e2e-js/tests/callfabric/websocket_reconnect.spec.ts#L41

Ah, this whole test suite is skipped, and that's why the CI wasn't showing any error.

It's public

The GitHub home page for this package is giving me 404: https://github.com/signalwire/playwright-ws-inspector

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

something is weird...
Playwrigth is just a dev dependency on playwrigth-ws-inspector

Can I remove it for now? Since the test suite is already skipped, it won't affect the CI.

I am also unsure about the reasoning behind that specific test and its usage. If we want to simulate the network down/up in the e2e test, we already do this in the Video SDK tests, we can use the same thing in the CF testing as well, if needed.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, this whole test suite is skipped, and that's why the CI wasn't showing any error.

Something is weird cause the dependence is on the Playwrite fixture that all tests use.
So even with that test skipped it should error.

I'm checking the test results it's not a version clash. It's a missing dependency.
Maybe the package-lock is pinning an M1 build.

Copy link
Collaborator Author

@iAmmar7 iAmmar7 Dec 27, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Something is weird cause the dependence is on the Playwrite fixture that all tests use.
So even with that test skipped it should error.

I removed the whole usage of this package, that's how I was able to make the CI green. Without affecting any tests since the only test that relies on this package is skipped.

Copy link
Collaborator

@jpsantosbh jpsantosbh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just update the playwrigth-ws-inspector to 1.1.0

ayeminag
ayeminag previously approved these changes Dec 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants