mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 01:30:50 -04:00
Merge pull request #53047 from nextcloud/fix/recommended-apps
fix: recommended apps button test
This commit is contained in:
commit
9530277f20
4 changed files with 19 additions and 9 deletions
|
|
@ -38,17 +38,16 @@
|
|||
|
||||
<div class="dialog-row">
|
||||
<NcButton v-if="showInstallButton && !installingApps"
|
||||
type="tertiary"
|
||||
role="link"
|
||||
data-cy-setup-recommended-apps-skip
|
||||
:href="defaultPageUrl"
|
||||
data-cy-setup-recommended-apps-skip>
|
||||
variant="tertiary">
|
||||
{{ t('core', 'Skip') }}
|
||||
</NcButton>
|
||||
|
||||
<NcButton v-if="showInstallButton"
|
||||
type="primary"
|
||||
data-cy-setup-recommended-apps-install
|
||||
:disabled="installingApps || !isAnyAppSelected"
|
||||
data-cy-setup-recommended-apps-install>
|
||||
variant="primary"
|
||||
@click.stop.prevent="installApps">
|
||||
{{ installingApps ? t('core', 'Installing apps …') : t('core', 'Install recommended apps') }}
|
||||
</NcButton>
|
||||
|
|
|
|||
|
|
@ -124,8 +124,19 @@ function sharedSetup() {
|
|||
cy.location('pathname', { timeout: 10000 })
|
||||
.should('include', '/core/apps/recommended')
|
||||
|
||||
// See the apps setup
|
||||
cy.get('[data-cy-setup-recommended-apps]')
|
||||
.should('be.visible')
|
||||
.within(() => {
|
||||
cy.findByRole('heading', { name: 'Recommended apps' })
|
||||
.should('be.visible')
|
||||
cy.findByRole('button', { name: 'Skip' })
|
||||
.should('be.visible')
|
||||
cy.findByRole('button', { name: 'Install recommended apps' })
|
||||
.should('be.visible')
|
||||
})
|
||||
|
||||
// Skip the setup apps
|
||||
cy.get('[data-cy-setup-recommended-apps]').should('be.visible')
|
||||
cy.get('[data-cy-setup-recommended-apps-skip]').click()
|
||||
|
||||
// Go to files
|
||||
|
|
|
|||
4
dist/core-recommendedapps.js
vendored
4
dist/core-recommendedapps.js
vendored
File diff suppressed because one or more lines are too long
2
dist/core-recommendedapps.js.map
vendored
2
dist/core-recommendedapps.js.map
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue