aboutsummaryrefslogtreecommitdiffstats
path: root/cypress/e2e/settings
diff options
context:
space:
mode:
authorLouis Chemineau <louis@chmn.me>2024-11-25 12:42:51 +0100
committerLouis Chemineau <louis@chmn.me>2024-11-25 16:22:09 +0100
commitebda7b45f64bbdb74b8e664f15c0f876d1a45117 (patch)
treebdc62596da86064767bd6a6c4e4d5468493ae04f /cypress/e2e/settings
parent3822db51742eb12c67b525cab80ec0699e011684 (diff)
downloadnextcloud-server-ebda7b45f64bbdb74b8e664f15c0f876d1a45117.tar.gz
nextcloud-server-ebda7b45f64bbdb74b8e664f15c0f876d1a45117.zip
chore: Update @nextcloud/cypress to v1.0.0-beta.11artonge/chore/update_nc_cypress_beta.11
Signed-off-by: Louis Chemineau <louis@chmn.me>
Diffstat (limited to 'cypress/e2e/settings')
-rw-r--r--cypress/e2e/settings/personal-info.cy.ts4
-rw-r--r--cypress/e2e/settings/users_groups.cy.ts4
2 files changed, 4 insertions, 4 deletions
diff --git a/cypress/e2e/settings/personal-info.cy.ts b/cypress/e2e/settings/personal-info.cy.ts
index 30c0bce9421..940e3cd6449 100644
--- a/cypress/e2e/settings/personal-info.cy.ts
+++ b/cypress/e2e/settings/personal-info.cy.ts
@@ -118,7 +118,7 @@ describe('Settings: Change personal information', { testIsolation: true }, () =>
cy.login(user)
cy.visit('/settings/user')
- cy.backupDB().then(($snapshot) => {
+ cy.saveState().then(($snapshot) => {
snapshot = $snapshot
})
})
@@ -136,7 +136,7 @@ describe('Settings: Change personal information', { testIsolation: true }, () =>
})
afterEach(() => {
- cy.restoreDB(snapshot)
+ cy.restoreState(snapshot)
})
it('Can dis- and enable the profile', () => {
diff --git a/cypress/e2e/settings/users_groups.cy.ts b/cypress/e2e/settings/users_groups.cy.ts
index f7a8d7c6d03..0f5f9c26538 100644
--- a/cypress/e2e/settings/users_groups.cy.ts
+++ b/cypress/e2e/settings/users_groups.cy.ts
@@ -213,7 +213,7 @@ describe.only('Settings: Sort groups in the UI', () => {
cy.runOccCommand('group:list --output json').then((output) => {
const groups = Object.keys(JSON.parse(output.stdout)).filter((group) => group !== 'admin')
groups.forEach((group) => {
- cy.runOccCommand(`group:delete "${group}"`)
+ cy.runOccCommand(`group:delete '${group}'`)
})
})
@@ -221,7 +221,7 @@ describe.only('Settings: Sort groups in the UI', () => {
cy.runOccCommand('group:add A')
cy.runOccCommand('group:add B')
cy.createRandomUser().then((user) => {
- cy.runOccCommand(`group:adduser B "${user.userId}"`)
+ cy.runOccCommand(`group:adduser B '${user.userId}'`)
})
// Visit the settings as admin