Skip to content

Commit

Permalink
resolve lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
pratyush1712 committed Nov 7, 2023
1 parent 7810ce3 commit d94c206
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 6 deletions.
20 changes: 16 additions & 4 deletions frontend/cypress/e2e/homepage.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,26 @@ describe('Landing Page', () => {
});

it('has visible student and admin login buttons with correct text', () => {
cy.get('[data-cy="container_item_left"]').should('contain', 'Sign in with Google').and('contain', 'Students');
cy.get('[data-cy="container_item_right"]').should('contain', 'Sign in with Google').and('contain', 'Admins');
cy.get('[data-cy="container_item_left"]')
.should('contain', 'Sign in with Google')
.and('contain', 'Students');
cy.get('[data-cy="container_item_right"]')
.should('contain', 'Sign in with Google')
.and('contain', 'Admins');
});

it('has a visible logo for both student and admin buttons', () => {
cy.get('[data-cy="badge"]').should('have.attr', 'alt', 'Carriage logo');
cy.get('[data-cy="container_item_left"] img').should('have.attr', 'alt', 'google logo');
cy.get('[data-cy="container_item_right"] img').should('have.attr', 'alt', 'google logo');
cy.get('[data-cy="container_item_left"] img').should(
'have.attr',
'alt',
'google logo'
);
cy.get('[data-cy="container_item_right"] img').should(
'have.attr',
'alt',
'google logo'
);
});

it('student login button triggers the correct function', () => {
Expand Down
2 changes: 1 addition & 1 deletion frontend/cypress/support/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@
// visit(originalFn: CommandOriginalFn, url: string, options: Partial<VisitOptions>): Chainable<Element>
// }
// }
// }
// }
2 changes: 1 addition & 1 deletion frontend/cypress/support/e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@
// ***********************************************************

// Import commands.js using ES2015 syntax:
import './commands'
import './commands';

0 comments on commit d94c206

Please sign in to comment.