Skip to content

Commit

Permalink
Add AdminGuesser e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
fzaninotto committed Nov 6, 2024
1 parent 783b751 commit a59fcce
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions cypress/e2e/adminGuesser.cy.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import { login } from './login';

const getPaginationText = () =>
cy.findByText(/\d+-\d+ of \d+/, { timeout: 10000 });

describe('AdminGuesser', () => {
it('should render one menu item per resource', () => {
cy.visit('/');
login();
cy.findByText('Companies').should('exist');
cy.findByText('Contacts').should('exist');
cy.findByText('Deals').should('exist');
cy.findByText('Tags').should('exist');
cy.findByText('Tasks').should('exist');
cy.findByText('Dealnotes').should('exist');
cy.findByText('Contactnotes').should('exist');
cy.findByText('Sales').should('exist');
});
});

0 comments on commit a59fcce

Please sign in to comment.