Skip to content

Commit

Permalink
Edit cypress tests
Browse files Browse the repository at this point in the history
  • Loading branch information
wg102 committed Jan 9, 2024
1 parent 4c2d498 commit 1bcff2e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions components/centraldashboard/cypress/e2e/landing-page.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ describe('Landing Page', () => {
cy.mockDashboardLinksRequest();
cy.intercept('GET', `/api/workgroup/exists`, {
"hasAuth":true,
"user":"user.name",
"user":"user.name@email.com",
"hasWorkgroup":false,
"registrationFlowAllowed":true
}).as('mockWorkgroupRequest');
Expand All @@ -16,7 +16,8 @@ describe('Landing Page', () => {
it('should access the landing page', ()=>{
cy.get('main-page').shadow().find('landing-page').should('exist');
cy.get('main-page').shadow().find('landing-page').shadow().find('#MainCard > neon-animatable > h2').should('have.text', 'Welcome');
cy.get('main-page').shadow().find('landing-page').shadow().find('#MainCard > neon-animatable > aside').should('have.text', 'It seems like you have not been assigned to a workspace, please refer to your project owner or join us on our Slack support channel at https://statcan-aaw.slack.com');
cy.get('main-page').shadow().find('landing-page').shadow().find('#MainCard > neon-animatable > aside').find('a').should('exist').and('have.prop', 'href', 'https://statcan-aaw.slack.com/');
cy.get('main-page').shadow().find('landing-page').shadow().find('#MainCard > neon-animatable').find('md2-input#Email').should('exist').and('have.prop', 'value', '[email protected]');
cy.get('main-page').shadow().find('landing-page').shadow().find('#MainCard > neon-animatable').find('md2-input#Namespace').should('exist').and('have.prop', 'value', 'user-name');
});
});

0 comments on commit 1bcff2e

Please sign in to comment.