Skip to content

[stable31] Migrate to playwright to update cypress#8230

Draft
backportbot[bot] wants to merge 45 commits intostable31from
backport/8223/stable31
Draft

[stable31] Migrate to playwright to update cypress#8230
backportbot[bot] wants to merge 45 commits intostable31from
backport/8223/stable31

Conversation

@backportbot
Copy link

@backportbot backportbot bot commented Feb 1, 2026

Backport of #8223

Warning, This backport's changes differ from the original and might be incomplete ⚠️

Todo

  • Review and resolve any conflicts
  • Amend HEAD commit to remove the line stating to skip CI

Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports.

mejo- and others added 25 commits February 1, 2026 12:03
I was sick of debugging flaky Cypress tests, so I gave Playwright a try.

Signed-off-by: Jonas <jonas@freesources.org>
Signed-off-by: Max <max@nextcloud.com>
Signed-off-by: Max <max@nextcloud.com>
Signed-off-by: Max <max@nextcloud.com>
Signed-off-by: Max <max@nextcloud.com>
Signed-off-by: Max <max@nextcloud.com>
Signed-off-by: Max <max@nextcloud.com>
Signed-off-by: Max <max@nextcloud.com>
Signed-off-by: Max <max@nextcloud.com>
Signed-off-by: Max <max@nextcloud.com>
Signed-off-by: Max <max@nextcloud.com>
Signed-off-by: Max <max@nextcloud.com>
Signed-off-by: Max <max@nextcloud.com>
Signed-off-by: Max <max@nextcloud.com>
Signed-off-by: Max <max@nextcloud.com>
Signed-off-by: Max <max@nextcloud.com>
Signed-off-by: Max <max@nextcloud.com>
Signed-off-by: Max <max@nextcloud.com>
Signed-off-by: Max <max@nextcloud.com>
Signed-off-by: Max <max@nextcloud.com>
Signed-off-by: Max <max@nextcloud.com>
Signed-off-by: Max <max@nextcloud.com>
Signed-off-by: Max <max@nextcloud.com>
Signed-off-by: Max <max@nextcloud.com>
Preparing for multi context scenarios such as shared files.

Signed-off-by: Max <max@nextcloud.com>
max-nextcloud and others added 19 commits February 1, 2026 12:04
Signed-off-by: Max <max@nextcloud.com>
It is included in uploadFileTest and sharedFileTest

Signed-off-by: Max <max@nextcloud.com>
Signed-off-by: Max <max@nextcloud.com>
Create a new instance on move to handle the name change

Signed-off-by: Max <max@nextcloud.com>
Include a host identifier in the test name
so the screenshot name also includes it.

This way screenshots will only be compared
to the ones created on the same machine.

Only track the CI ones in git. Ignore the others.

> Having different screenshots between local and docker environments is expected.
> You can only compare screenshots that are taken in the same exact environment, OS, fonts, etc.
See microsoft/playwright#20366 (comment)

Signed-off-by: Max <max@nextcloud.com>
Signed-off-by: Max <max@nextcloud.com>
Signed-off-by: Max <max@nextcloud.com>
Signed-off-by: Max <max@nextcloud.com>
Signed-off-by: Max <max@nextcloud.com>
Signed-off-by: Max <max@nextcloud.com>
Signed-off-by: Jonas <jonas@freesources.org>
…acter

Signed-off-by: Jonas <jonas@freesources.org>
Signed-off-by: Max <max@nextcloud.com>
There are no buttons that we would need to leave room for.
This way the print view looks the same between editable and readonly shares.

Signed-off-by: Max <max@nextcloud.com>
Signed-off-by: Max <max@nextcloud.com>
Signed-off-by: Max <max@nextcloud.com>
Signed-off-by: Max <max@nextcloud.com>
We have a playwright test that does the same now.

Signed-off-by: Max <max@nextcloud.com>
@max-nextcloud max-nextcloud force-pushed the backport/8223/stable31 branch from fe3b15d to f01177d Compare February 1, 2026 11:19
Signed-off-by: Max <max@nextcloud.com>
@max-nextcloud
Copy link
Collaborator

Interesting... cypress seems to crash on almost all tests here... 🤷

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants