Skip to content

Commit

Permalink
test(cypress): Fix selector for close button in page trash modal
Browse files Browse the repository at this point in the history
Signed-off-by: Jonas <jonas@freesources.org>
  • Loading branch information
mejo- committed Dec 5, 2023
1 parent 7efeab3 commit 7e6863e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cypress/e2e/page-list.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ describe('Page list', function() {
.click()
cy.get('table tr')
.should('not.exist')
cy.get('button.modal-container__close').click()
cy.get('.modal__page-trash button.modal-container__close').click()

cy.openPage('Day 1')
cy.getReadOnlyEditor()
Expand Down
5 changes: 4 additions & 1 deletion src/components/PageList/PageTrash.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@
</template>
{{ t('collectives', 'Deleted pages') }}
</NcButton>
<NcModal v-if="showModal" size="large" @close="closeTrash">
<NcModal v-if="showModal"
size="large"
class="modal__page-trash"
@close="closeTrash">
<div class="modal__content">
<h2>{{ t('collectives', 'Deleted pages') }}</h2>
<NcEmptyContent v-if="!trashPages.length"
Expand Down

0 comments on commit 7e6863e

Please sign in to comment.