chore: Upgrade Cypress to 13.4.0 (#8271)
This commit is contained in:
10
spec/cypress.config.js
Normal file
10
spec/cypress.config.js
Normal file
@@ -0,0 +1,10 @@
|
||||
const { defineConfig } = require('cypress');
|
||||
|
||||
module.exports = defineConfig({
|
||||
defaultCommandTimeout: 10000,
|
||||
viewportWidth: 1250,
|
||||
viewportHeight: 800,
|
||||
e2e: {
|
||||
baseUrl: 'http://localhost:5050',
|
||||
},
|
||||
});
|
||||
@@ -1,6 +0,0 @@
|
||||
{
|
||||
"baseUrl": "http://localhost:5050",
|
||||
"defaultCommandTimeout": 10000,
|
||||
"viewportWidth": 1250,
|
||||
"viewportHeight": 800
|
||||
}
|
||||
@@ -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();
|
||||
});
|
||||
});
|
||||
@@ -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();
|
||||
});
|
||||
});
|
||||
@@ -1,20 +0,0 @@
|
||||
describe('AdminDashboardAuthentication', function () {
|
||||
before(() => {
|
||||
cy.app('clean');
|
||||
cy.appScenario('default');
|
||||
});
|
||||
|
||||
it('authenticates an admin ', function () {
|
||||
cy.visit('/');
|
||||
|
||||
cy.get("[data-testid='email_input']")
|
||||
.clear()
|
||||
.type('john@acme.inc');
|
||||
cy.get("[data-testid='password_input']")
|
||||
.clear()
|
||||
.type('Password1!');
|
||||
|
||||
cy.get("[data-testid='submit_button']").click();
|
||||
});
|
||||
|
||||
});
|
||||
@@ -1,21 +0,0 @@
|
||||
describe('AdminCreateLabel', () => {
|
||||
before(() => {
|
||||
cy.wait(3000);
|
||||
});
|
||||
|
||||
it('open add label modal', () => {
|
||||
cy.get(
|
||||
'ul.menu.vertical > li:last-child > a.sub-menu-title.side-menu > span.child-icon.ion-android-add-circle'
|
||||
).click();
|
||||
});
|
||||
it('create a label', () => {
|
||||
cy.get("[data-testid='label-title'] > input")
|
||||
.clear()
|
||||
.type(`show_stopper_${new Date().getTime()}`);
|
||||
cy.get("[data-testid='label-description'] > input")
|
||||
.clear()
|
||||
.type('denote it with show show stopper cases');
|
||||
|
||||
cy.get("[data-testid='label-submit']").click();
|
||||
});
|
||||
});
|
||||
@@ -1,21 +0,0 @@
|
||||
/// <reference types="cypress" />
|
||||
// ***********************************************************
|
||||
// This example plugins/index.js can be used to load plugins
|
||||
//
|
||||
// You can change the location of this file or turn off loading
|
||||
// the plugins file with the 'pluginsFile' configuration option.
|
||||
//
|
||||
// You can read more here:
|
||||
// https://on.cypress.io/plugins-guide
|
||||
// ***********************************************************
|
||||
|
||||
// This function is called when a project is opened or re-opened (e.g. due to
|
||||
// the project's config changing)
|
||||
|
||||
/**
|
||||
* @type {Cypress.PluginConfig}
|
||||
*/
|
||||
module.exports = (on, config) => {
|
||||
// `on` is used to hook into various events Cypress emits
|
||||
// `config` is the resolved Cypress config
|
||||
}
|
||||
Reference in New Issue
Block a user