Skip to content

Commit 5d99b32

Browse files
committed
test(cy): fix assistant test to match new behavior
* Adjust `get notified` string. * Check for changed icon rather than message. Changes caused by nextcloud/assistant#256 Signed-off-by: Max <max@nextcloud.com>
1 parent 99f75ac commit 5d99b32

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cypress/e2e/Assistant.spec.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,11 @@ describe('Assistant', () => {
6969
cy.wait(2000)
7070

7171
cy.get('.assistant-modal--content button')
72-
.contains('Run task in the background and get notified')
72+
.contains('Get notified')
7373
.click()
7474

75-
cy.get('.assistant-modal--content')
76-
.should('contain', 'Your task has been scheduled')
75+
cy.get('.assistant-modal--content button .bell-ring-outline-icon')
76+
.should('be.visible')
7777

7878
cy.get('.assistant-modal--content .close-button')
7979
.click()

0 commit comments

Comments
 (0)