-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "ci: Fix selector for saveas button"
This reverts commit f790b57. Signed-off-by: Julius Härtl <[email protected]>
- Loading branch information
1 parent
6bcd4b0
commit 7196e7e
Showing
2 changed files
with
10 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,8 @@ | |
* 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 | ||
|
||
|
@@ -61,19 +63,21 @@ describe('Nextcloud integration', function() { | |
cy.get('#tab-version_vue .version__info__label').contains('Current version') | ||
}) | ||
|
||
// Currently it seems that Collabora is missing the save as button | ||
it('Save as', function() { | ||
// Grouped save button is currently only fixed on Collabora nightly | ||
const exportFilename = isNightly ? 'document.rtf' : 'document.odt' | ||
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() | ||
if (isNightly) { | ||
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', `/${exportFilename}`) | ||
|
||
cy.get('.saveas-dialog button.button-vue--vue-primary').click() | ||
|
||
|
@@ -85,7 +89,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(exportFilename) | ||
}) | ||
|
||
it('Open locally', function() { | ||
|