Skip to content

Commit cb7439f

Browse files
committed
E2E: Update E2E tests
1 parent 70e9800 commit cb7439f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/cypress/e2e/logout.test.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ describe('Logout tests', () => {
77
it('Admin can logout', () => {
88
cy.visit('/wp-admin/admin.php?page=mailchimp_sf_options');
99
cy.get('#mailchimp_sf_oauth_connect').should('not.exist');
10+
11+
cy.on('window:confirm', (text) => {
12+
expect(text).to.contains('Are you sure you want to log out?');
13+
return true;
14+
});
15+
1016
cy.get('input[value="Logout"]').click();
1117

1218
// connect to "Mailchimp" Account button should be visible.

0 commit comments

Comments
 (0)