Skip to content

Commit

Permalink
Revert "ci: Fix selector for saveas button"
Browse files Browse the repository at this point in the history
This reverts commit f790b57.

Signed-off-by: Julius Härtl <[email protected]>
  • Loading branch information
juliusknorr committed Aug 20, 2024
1 parent 3a67f4e commit 711d332
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
1 change: 1 addition & 0 deletions .github/workflows/cypress-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ jobs:
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
SPLIT: 3
SPLIT_INDEX: ${{ env.container_index }}
CODE_RELEASE: ${{ matrix.code-image }}

- name: Upload test failure screenshots
uses: actions/upload-artifact@v2
Expand Down
12 changes: 7 additions & 5 deletions cypress/e2e/integration.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
* SPDX-FileCopyrightText: 2023 Julius Härtl <[email protected]>
* SPDX-License-Identifier: AGPL-3.0-or-later
*/

const isNightly = Cypress.env('CODE_RELEASE') === 'nightly'

describe('Nextcloud integration', function() {
let randUser

Expand Down Expand Up @@ -65,15 +68,14 @@ describe('Nextcloud integration', function() {
it('Save as', function() {
cy.get('@loleafletframe').within(() => {
cy.get('#File-tab-label').click()
cy.get('#file-saveas').click()
// FIXME: Seems currently broken, so let's skip this step
// cy.get('#saveas-entries #saveas-entry-1').click()
cy.get(isNightly ? '#file-saveas' : '#saveas').click()
cy.get('#saveas-entries #saveas-entry-1').click()
})

cy.get('.saveas-dialog').should('be.visible')
cy.get('.saveas-dialog input[type=text]')
.should('be.visible')
.should('have.value', '/document.odt')
.should('have.value', '/document.rtf')

cy.get('.saveas-dialog button.button-vue--vue-primary').click()

Expand All @@ -85,7 +87,7 @@ describe('Nextcloud integration', function() {
// FIXME: We should not need to reload
cy.get('.breadcrumb__crumbs a').eq(0).click({ force: true })

cy.openFile('document.odt')
cy.openFile('document.rtf')
})

it('Open locally', function() {
Expand Down

0 comments on commit 711d332

Please sign in to comment.