chore: Cypress test case for create label flow
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
{
|
||||
"baseUrl": "http://localhost:5050",
|
||||
"defaultCommandTimeout": 10000
|
||||
"defaultCommandTimeout": 10000,
|
||||
"viewportWidth": 1250,
|
||||
"viewportHeight": 800
|
||||
}
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
describe('AdminDashboardAuthentication', function() {
|
||||
describe('AdminDashboardAuthentication', function () {
|
||||
before(() => {
|
||||
cy.app('clean');
|
||||
cy.appScenario('default')
|
||||
cy.appScenario('default');
|
||||
});
|
||||
|
||||
it('authenticates an admin ', function() {
|
||||
it('authenticates an admin ', function () {
|
||||
cy.visit('/');
|
||||
|
||||
cy.get("[data-testid='email_input']")
|
||||
@@ -12,9 +12,9 @@ describe('AdminDashboardAuthentication', function() {
|
||||
.type('john@acme.inc');
|
||||
cy.get("[data-testid='password_input']")
|
||||
.clear()
|
||||
.type('123456');
|
||||
.type('Password1!');
|
||||
|
||||
cy.get("[data-testid='submit_button']").click();
|
||||
cy.contains('Conversations');
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
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();
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user