chore: Upgrade Cypress to 13.4.0 (#8271)

This commit is contained in:
Pranav Raj S
2023-10-31 19:39:34 -07:00
committed by GitHub
parent f34cd3ea61
commit 1e70223ed7
17 changed files with 423 additions and 541 deletions

View File

@@ -0,0 +1,17 @@
describe('AdminDashboardAuthentication', () => {
before(() => {
cy.app('clean');
cy.appScenario('default');
});
it('authenticates an admin ', () => {
cy.visit('/');
cy.get("[data-testid='email_input']").clear();
cy.get("[data-testid='email_input']").type('john@acme.inc');
cy.get("[data-testid='password_input']").clear();
cy.get("[data-testid='password_input']").type('Password1!');
cy.get("[data-testid='submit_button']").click();
});
});

View File

@@ -0,0 +1,28 @@
describe('AdminCreateLabel', () => {
before(() => {
cy.visit('/');
cy.get("[data-testid='email_input']").clear();
cy.get("[data-testid='email_input']").type('john@acme.inc');
cy.get("[data-testid='password_input']").clear();
cy.get("[data-testid='password_input']").type('Password1!');
cy.get("[data-testid='submit_button']").click();
});
it('open add label modal and create a label', () => {
cy.get("[data-testid='sidebar-new-label-button']").click();
cy.get("[data-testid='label-title'] > input").clear();
cy.get("[data-testid='label-title'] > input").type(
`show_stopper_${new Date().getTime()}`
);
cy.get("[data-testid='label-description'] > input").clear();
cy.get("[data-testid='label-description'] > input").type(
'denote it with show show stopper cases'
);
cy.get("[data-testid='label-submit']").click();
});
});