fix(learn): add e2e tests for navigation buttons in /learn (#39455)
This commit is contained in:
parent
cf2a8010b1
commit
16a643d66f
@ -0,0 +1,23 @@
|
||||
/* global cy */
|
||||
|
||||
describe('The `Update my account settings` button works properly', function() {
|
||||
beforeEach(() => {
|
||||
cy.visit('/');
|
||||
|
||||
cy.contains("Get started (it's free)").click({ force: true });
|
||||
});
|
||||
|
||||
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() {
|
||||
cy.contains('Update my account settings').click({ force: true });
|
||||
cy.url().should('include', '/settings');
|
||||
});
|
||||
});
|
@ -0,0 +1,23 @@
|
||||
/* global cy */
|
||||
|
||||
describe('The `View my Portfolio` button works properly', function() {
|
||||
beforeEach(() => {
|
||||
cy.visit('/');
|
||||
|
||||
cy.contains("Get started (it's free)").click({ force: true });
|
||||
});
|
||||
|
||||
it('Button gets 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('Button takes user to their portfolio when clicked', function() {
|
||||
cy.contains('View my Portfolio').click({ force: true });
|
||||
cy.url().should('include', '/developmentuser');
|
||||
});
|
||||
});
|
Loading…
x
Reference in New Issue
Block a user