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 <[email protected]>
  • Loading branch information
mejo- committed Dec 5, 2023
1 parent 0c81317 commit 5cb572d
Show file tree
Hide file tree
Showing 2 changed files with 2 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
2 changes: 1 addition & 1 deletion src/components/PageList/PageTrash.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
{{ t('collectives', 'Deleted pages') }}
</NcButton>
<NcModal v-if="showModal" size="large" @close="closeTrash">
<div class="modal__content">
<div class="modal__content modal__page-trash">
<h2>{{ t('collectives', 'Deleted pages') }}</h2>
<NcEmptyContent v-if="!trashPages.length"
class="modal__content_empty"
Expand Down

0 comments on commit 5cb572d

Please sign in to comment.