2020-08-24 16:47:33 +06:00
|
|
|
/* global cy */
|
|
|
|
|
|
|
|
describe('The `Update my account settings` button works properly', function() {
|
|
|
|
beforeEach(() => {
|
|
|
|
cy.visit('/');
|
|
|
|
|
2020-09-23 17:15:21 +02:00
|
|
|
cy.contains("Get started (it's free)").click();
|
2020-08-24 16:47:33 +06:00
|
|
|
});
|
|
|
|
|
|
|
|
it('Should get rendered', function() {
|
|
|
|
cy.contains('View my Portfolio').should(
|
|
|
|
'have.class',
|
|
|
|
'btn btn-lg btn-primary btn-block'
|
|
|
|
);
|
|
|
|
|
|
|
|
cy.contains('View my Portfolio').should('be.visible');
|
|
|
|
});
|
|
|
|
|
|
|
|
it('Should take user to their account settings when clicked', function() {
|
2020-09-23 17:15:21 +02:00
|
|
|
cy.contains('Update my account settings').click();
|
2020-08-24 16:47:33 +06:00
|
|
|
cy.url().should('include', '/settings');
|
|
|
|
});
|
|
|
|
});
|