Skip to content

Commit a63ad60

Browse files
committed
Add logout tests.
1 parent 5bfe73e commit a63ad60

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/cypress/e2e/settings.test.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,4 +189,13 @@ describe('Admin can update plugin settings', () => {
189189
cy.get('#mc_unsub_link').should('not.exist');
190190
});
191191
});
192+
193+
it('Admin can logout', () => {
194+
cy.visit('/wp-admin/admin.php?page=mailchimp_sf_options');
195+
cy.get('#mailchimp_sf_oauth_connect').should('not.exist');
196+
cy.get('input[value="Logout"]').click();
197+
198+
// connect to "Mailchimp" Account button should be visible.
199+
cy.get('#mailchimp_sf_oauth_connect').should('exist');
200+
});
192201
});

0 commit comments

Comments
 (0)