Skip to content

Commit 2f2f661

Browse files
committed
test: update cypress test for new files_external mount behavior
Signed-off-by: Robin Appelman <[email protected]>
1 parent c9fac24 commit 2f2f661

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

cypress/e2e/files_external/files-external-failed.cy.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ describe('Files user credentials', { testIsolation: true }, () => {
3535

3636
it('Create a failed user storage with invalid url', () => {
3737
const url = 'http://cloud.domain.com/remote.php/dav/files/abcdef123456'
38-
createStorageWithConfig('Storage1', StorageBackend.DAV, AuthBackend.LoginCredentials, { host: url.replace('index.php/', ''), secure: 'false' })
38+
createStorageWithConfig('Storage1', StorageBackend.DAV, AuthBackend.LoginCredentials, { host: url.replace('index.php/', ''), secure: 'false' }).then((id) => {
39+
cy.runOccCommand(`files_external:verify ${id}`)
40+
});
3941

4042
cy.login(currentUser)
4143
cy.visit('/apps/files')
@@ -59,7 +61,9 @@ describe('Files user credentials', { testIsolation: true }, () => {
5961
user: 'invaliduser',
6062
password: 'invalidpassword',
6163
secure: 'false',
62-
})
64+
}).then((id) => {
65+
cy.runOccCommand(`files_external:verify ${id}`)
66+
});
6367

6468
cy.login(currentUser)
6569
cy.visit('/apps/files')

0 commit comments

Comments
 (0)