Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions cypress.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ export default defineConfig({
trashAssetsBeforeRuns: true,

e2e: {
testIsolation: false,

// We've imported your old cypress plugins here.
// You may want to clean this up later by importing these.
async setupNodeEvents(on, config) {
Expand Down
14 changes: 10 additions & 4 deletions cypress/e2e/settings.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,19 @@
*
*/

import type { User } from "@nextcloud/cypress"

describe('Check that user\'s settings survive a reload', () => {
let user: User

before(() => {
cy.createRandomUser()
.then((user) => {
cy.login(user)
cy.visit('/settings/user/notifications')
})
.then(_user => user = _user)
})

beforeEach(() => {
cy.login(user)
cy.visit('/settings/user/notifications')
})

it('Form survive a reload', () => {
Expand Down
4 changes: 4 additions & 0 deletions cypress/e2e/sidebarUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,3 +117,7 @@ export function addComment(fileName: string, comment: string) {

cy.wait('@comment')
}

export function randHash() {
return Math.random().toString(36).replace(/[^a-z]+/g, '').slice(0, 10)
}
Loading