test: Update cypress test for circle/project description richtext editor
This commit is contained in:
parent
79d9695186
commit
32b055c2db
cypress/integration
@ -13,7 +13,8 @@ context('Create Channel Browser Testing', () => {
|
||||
it('should login', () => cy.login());
|
||||
describe('Channel Creation process #1', () => {
|
||||
let channelName = 'Test Channel ',
|
||||
description = 'Test Description ';
|
||||
description = 'Test Description ',
|
||||
subtitle = 'Test Subtitle ';
|
||||
it('should visit the channel creation screen', () => {
|
||||
cy.visit('/admin/admin-circle-create');
|
||||
cy.location().should((loc) => {
|
||||
@ -24,10 +25,13 @@ context('Create Channel Browser Testing', () => {
|
||||
cy.randomNum().then(num => {
|
||||
channelName += num;
|
||||
description += num;
|
||||
subtitle += num;
|
||||
cy.get('#admin-circle-create input[name="name"]').clear().type(channelName);
|
||||
cy.get('#admin-circle-create input[name="name"]').should('have.value', channelName);
|
||||
cy.get('#admin-circle-create input[name="description"]').clear().type(description);
|
||||
cy.get('#admin-circle-create input[name="description"]').should('have.value', description);
|
||||
cy.get('#admin-circle-create input[name="subtitle"]').clear().type(subtitle);
|
||||
cy.get('#admin-circle-create input[name="subtitle"]').should('have.value', subtitle);
|
||||
cy.get('#admin-circle-create [name="description"] [contenteditable="true"]').clear().type(description);
|
||||
cy.get('#admin-circle-create [name="description"] [contenteditable="true"]').should('have.value', description);
|
||||
});
|
||||
});
|
||||
it('should click on create channel button', () => {
|
||||
@ -47,7 +51,8 @@ context('Create Channel Browser Testing', () => {
|
||||
});
|
||||
describe('Channel Creation process #2', () => {
|
||||
let channelName = 'Test Channel ',
|
||||
description = 'Test Description ';
|
||||
description = 'Test Description ',
|
||||
subtitle = 'Test Subtitle ';
|
||||
it('should visit the channel creation screen', () => {
|
||||
cy.visit('/admin/admin-circle-create');
|
||||
cy.location().should((loc) => {
|
||||
@ -58,10 +63,13 @@ context('Create Channel Browser Testing', () => {
|
||||
cy.randomNum().then(num => {
|
||||
channelName += num;
|
||||
description += num;
|
||||
subtitle += num;
|
||||
cy.get('#admin-circle-create input[name="name"]').clear().type(channelName);
|
||||
cy.get('#admin-circle-create input[name="name"]').should('have.value', channelName);
|
||||
cy.get('#admin-circle-create input[name="description"]').clear().type(description);
|
||||
cy.get('#admin-circle-create input[name="description"]').should('have.value', description);
|
||||
cy.get('#admin-circle-create input[name="subtitle"]').clear().type(subtitle);
|
||||
cy.get('#admin-circle-create input[name="subtitle"]').should('have.value', subtitle);
|
||||
cy.get('#admin-circle-create [name="description"] [contenteditable="true"]').clear().type(description);
|
||||
cy.get('#admin-circle-create [name="description"] [contenteditable="true"]').should('have.value', description);
|
||||
});
|
||||
});
|
||||
it('should click on create channel button', () => {
|
||||
@ -81,7 +89,8 @@ context('Create Channel Browser Testing', () => {
|
||||
});
|
||||
describe('Channel Creation process #3', () => {
|
||||
let channelName = 'Test Channel ',
|
||||
description = 'Test Description ';
|
||||
description = 'Test Description ',
|
||||
subtitle = 'Test Subtitle ';
|
||||
it('should visit the channel creation screen', () => {
|
||||
cy.visit('/admin/admin-circle-create');
|
||||
cy.location().should((loc) => {
|
||||
@ -92,10 +101,13 @@ context('Create Channel Browser Testing', () => {
|
||||
cy.randomNum().then(num => {
|
||||
channelName += num;
|
||||
description += num;
|
||||
subtitle += num;
|
||||
cy.get('#admin-circle-create input[name="name"]').clear().type(channelName);
|
||||
cy.get('#admin-circle-create input[name="name"]').should('have.value', channelName);
|
||||
cy.get('#admin-circle-create input[name="description"]').clear().type(description);
|
||||
cy.get('#admin-circle-create input[name="description"]').should('have.value', description);
|
||||
cy.get('#admin-circle-create input[name="subtitle"]').clear().type(subtitle);
|
||||
cy.get('#admin-circle-create input[name="subtitle"]').should('have.value', subtitle);
|
||||
cy.get('#admin-circle-create [name="description"] [contenteditable="true"]').clear().type(description);
|
||||
cy.get('#admin-circle-create [name="description"] [contenteditable="true"]').should('have.value', description);
|
||||
});
|
||||
});
|
||||
it('should click on create channel button', () => {
|
||||
|
@ -30,8 +30,8 @@ context('Create Project Browser Testing', () => {
|
||||
cy.get('#admin-project-create input[name="customer.name"]').should('have.value', customerName);
|
||||
cy.get('#admin-project-create input[name="name"]').clear().type(projectName);
|
||||
cy.get('#admin-project-create input[name="name"]').should('have.value', projectName);
|
||||
cy.get('#admin-project-create textarea[name="description"]').clear().type(description);
|
||||
cy.get('#admin-project-create textarea[name="description"]').should('have.value', description);
|
||||
cy.get('#admin-project-create [name="description"] [contenteditable="true"]').clear().type(description);
|
||||
cy.get('#admin-project-create [name="description"] [contenteditable="true"]').should('have.value', description);
|
||||
});
|
||||
});
|
||||
it('should click on create project button', () => {
|
||||
@ -68,8 +68,8 @@ context('Create Project Browser Testing', () => {
|
||||
cy.get('#admin-project-create input[name="customer.name"]').should('have.value', customerName);
|
||||
cy.get('#admin-project-create input[name="name"]').clear().type(projectName);
|
||||
cy.get('#admin-project-create input[name="name"]').should('have.value', projectName);
|
||||
cy.get('#admin-project-create textarea[name="description"]').clear().type(description);
|
||||
cy.get('#admin-project-create textarea[name="description"]').should('have.value', description);
|
||||
cy.get('#admin-project-create [name="description"] [contenteditable="true"]').clear().type(description);
|
||||
cy.get('#admin-project-create [name="description"] [contenteditable="true"]').should('have.value', description);
|
||||
});
|
||||
});
|
||||
it('should click on create project button', () => {
|
||||
|
Loading…
Reference in New Issue
Block a user