freeCodeCamp/cypress/integration/learn/navigation-buttons/update-my-account-settings-button.js

13 lines
330 B
JavaScript
Raw Normal View History

/* global cy */
describe('The `Update my account settings` button works properly', function () {
beforeEach(() => {
2020-09-03 14:21:16 +03:00
cy.login();
});
it('Should take user to their account settings when clicked', function () {
cy.contains('Update my account settings').click();
cy.url().should('include', '/settings');
});
});