File tree Expand file tree Collapse file tree 2 files changed +4
-7
lines changed
Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change 44 */
55
66import { test as setup } from '@playwright/test'
7- import { configureNextcloud , docker } from '@nextcloud/cypress/docker'
7+ import { configureNextcloud , getContainer } from '@nextcloud/cypress/docker'
88
99/**
1010 * We use this to ensure Nextcloud is configured correctly before running our tests
@@ -13,7 +13,5 @@ import { configureNextcloud, docker } from '@nextcloud/cypress/docker'
1313 * as that only checks for the URL to be accessible which happens already before everything is configured.
1414 */
1515setup ( 'Configure Nextcloud' , async ( ) => {
16- const containerName = 'nextcloud-cypress-tests_forms'
17- const container = docker . getContainer ( containerName )
18- await configureNextcloud ( [ 'forms' , 'viewer' ] , undefined , container )
16+ await configureNextcloud ( [ 'forms' , 'viewer' ] , undefined , getContainer ( ) )
1917} )
Original file line number Diff line number Diff line change 33 * SPDX-License-Identifier: AGPL-3.0-or-later
44 */
55
6- import { docker } from '@nextcloud/cypress/docker'
6+ import { getContainer } from '@nextcloud/cypress/docker'
77import { expect , type APIRequestContext } from '@playwright/test'
88
99/**
@@ -22,8 +22,7 @@ export async function runShell(
2222 env ?: Record < string , string | number >
2323 } ,
2424) {
25- const containerName = 'nextcloud-cypress-tests_forms'
26- const container = docker . getContainer ( containerName )
25+ const container = getContainer ( )
2726
2827 const exec = await container . exec ( {
2928 Cmd : [ 'sh' , '-c' , command ] ,
You can’t perform that action at this time.
0 commit comments