Skip to content

Commit e7a71e3

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

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
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,6 +61,8 @@ describe('Files user credentials', { testIsolation: true }, () => {
5961
user: 'invaliduser',
6062
password: 'invalidpassword',
6163
secure: 'false',
64+
}).then((id) => {
65+
cy.runOccCommand(`files_external:verify ${id}`)
6266
})
6367

6468
cy.login(currentUser)

0 commit comments

Comments
 (0)