Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
debug: run spec 4 times in different containers
Signed-off-by: Max <[email protected]>
  • Loading branch information
max-nextcloud committed Dec 15, 2023
commit f1ae6aecf7dd196ae5f09b1163ac7ccfcbbf83ef
2 changes: 1 addition & 1 deletion .github/workflows/cypress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ jobs:
fail-fast: false
matrix:
node-version: [16]
containers: [1]
containers: [1, 2, 3, 4]
php-versions: [ '8.1' ]
server-versions: [ 'stable28' ]
run-in-parallel:
Expand Down
43 changes: 43 additions & 0 deletions cypress/e2e/debug2.spec.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
/**
* @copyright Copyright (c) 2021 Julien Veyssier <[email protected]>
*
* @author Julien Veyssier <[email protected]>
*
* @license AGPL-3.0-or-later
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/

import { randUser } from '../utils/index.js'

const user = randUser()

describe('Test all attachment insertion methods', () => {
before(() => {
cy.createUser(user)
})

it('deletes file just fine', () => {
cy.login(user)
const fileName = 'deleteMe.md'
cy.createFile(fileName, '# Hello world!', 'text/markdown')
cy.visit('/apps/files')
cy.getFile(fileName)
.should('exist')
cy.deleteFile(fileName)
cy.reloadFileList()
})

})
43 changes: 43 additions & 0 deletions cypress/e2e/debug3.spec.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
/**
* @copyright Copyright (c) 2021 Julien Veyssier <[email protected]>
*
* @author Julien Veyssier <[email protected]>
*
* @license AGPL-3.0-or-later
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/

import { randUser } from '../utils/index.js'

const user = randUser()

describe('Test all attachment insertion methods', () => {
before(() => {
cy.createUser(user)
})

it('deletes file just fine', () => {
cy.login(user)
const fileName = 'deleteMe.md'
cy.createFile(fileName, '# Hello world!', 'text/markdown')
cy.visit('/apps/files')
cy.getFile(fileName)
.should('exist')
cy.deleteFile(fileName)
cy.reloadFileList()
})

})
43 changes: 43 additions & 0 deletions cypress/e2e/debug4.spec.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
/**
* @copyright Copyright (c) 2021 Julien Veyssier <[email protected]>
*
* @author Julien Veyssier <[email protected]>
*
* @license AGPL-3.0-or-later
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/

import { randUser } from '../utils/index.js'

const user = randUser()

describe('Test all attachment insertion methods', () => {
before(() => {
cy.createUser(user)
})

it('deletes file just fine', () => {
cy.login(user)
const fileName = 'deleteMe.md'
cy.createFile(fileName, '# Hello world!', 'text/markdown')
cy.visit('/apps/files')
cy.getFile(fileName)
.should('exist')
cy.deleteFile(fileName)
cy.reloadFileList()
})

})