Skip to content

Commit

Permalink
debug: run spec 4 times in different containers
Browse files Browse the repository at this point in the history
Signed-off-by: Max <max@nextcloud.com>
  • Loading branch information
max-nextcloud committed Dec 14, 2023
1 parent cc771f0 commit f7292d4
Show file tree
Hide file tree
Showing 4 changed files with 130 additions and 1 deletion.
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 <eneiluj@posteo.net>
*
* @author Julien Veyssier <eneiluj@posteo.net>
*
* @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 <eneiluj@posteo.net>
*
* @author Julien Veyssier <eneiluj@posteo.net>
*
* @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 <eneiluj@posteo.net>
*
* @author Julien Veyssier <eneiluj@posteo.net>
*
* @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()
})

})

0 comments on commit f7292d4

Please sign in to comment.