Skip to content

Commit 535651d

Browse files
authored
Merge pull request #61217 from nextcloud/test/pw-core
test(core): migrate end-to-end test to PlayWright
2 parents b49ea35 + a6d9c95 commit 535651d

13 files changed

Lines changed: 416 additions & 350 deletions

.github/workflows/cypress.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,10 +141,10 @@ jobs:
141141
matrix:
142142
# Run multiple copies of the current job in parallel
143143
# Please increase the number or runners as your tests suite grows (0 based index for e2e tests)
144-
containers: ['setup', '0', '1', '2', '3', '4', '5', '6']
144+
containers: ['setup', '0', '1', '2', '3', '4', '5']
145145
# Hack as strategy.job-total includes the "setup" and GitHub does not allow math expressions
146146
# Always align this number with the total of e2e runners (max. index + 1)
147-
total-containers: [7]
147+
total-containers: [6]
148148

149149
services:
150150
mysql:

.github/workflows/playwright.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ jobs:
8282
strategy:
8383
fail-fast: false
8484
matrix:
85-
shardIndex: [1, 2, 3]
86-
shardTotal: [3]
85+
shardIndex: [1, 2, 3, 4]
86+
shardTotal: [4]
8787
outputs:
8888
node-version: ${{ steps.versions.outputs.node-version }}
8989
package-manager-version: ${{ steps.versions.outputs.package-manager-version }}

cypress.config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,8 @@ export default defineConfig({
173173
await configureNextcloud()
174174
// additionally we do not want to DoS the app store
175175
runOcc(['config:system:set', 'appstoreenabled', '--value', 'false', '--type', 'boolean'])
176+
console.log('Running cron to finish setup and avoid first-run effects during tests 🕒')
177+
runExec(['php', 'cron.php'])
176178

177179
// for later use in tests save the container name
178180
// @ts-expect-error we are adding a custom property

cypress/e2e/core/404-error.cy.ts

Lines changed: 0 additions & 19 deletions
This file was deleted.

cypress/e2e/core/header_access-levels.cy.ts

Lines changed: 0 additions & 101 deletions
This file was deleted.

cypress/e2e/core/header_app-menu.cy.ts

Lines changed: 0 additions & 91 deletions
This file was deleted.

cypress/e2e/core/header_contacts-menu.cy.ts

Lines changed: 0 additions & 135 deletions
This file was deleted.

0 commit comments

Comments
 (0)