cypress: update CSS class name

rename loleaflet -> cool

Change-Id: I2eef3661e210e04b89e51ba52e707f16617ec87b
Signed-off-by: Henry Castro <hcastro@collabora.com>
This commit is contained in:
Henry Castro 2021-11-03 08:38:39 -04:00 committed by Jan Holesovsky
parent 512daa4034
commit 99ac2038bb
11 changed files with 63 additions and 63 deletions

View file

@ -309,7 +309,7 @@ function insertMultipleComment(docType, numberOfComments = 1, isMobile = false)
cy.wait(100);
cy.get('.loleaflet-annotation-table').should('exist');
cy.get('.cool-annotation-table').should('exist');
if (isMobile) {
cy.get('#new-mobile-comment-input-area').type('some text' + n);

View file

@ -286,7 +286,7 @@ function selectHamburgerMenuItem(menuItems) {
function selectAnnotationMenuItem(menuItem) {
cy.log('Selecting annotation menu item - start.');
cy.get('#mobile-wizard .wizard-comment-box .loleaflet-annotation-menu')
cy.get('#mobile-wizard .wizard-comment-box .cool-annotation-menu')
.click({force: true});
cy.get('.context-menu-list')
@ -336,7 +336,7 @@ function insertComment() {
cy.contains('.menu-entry-with-icon', 'Comment').click();
cy.get('.loleaflet-annotation-table').should('exist');
cy.get('.cool-annotation-table').should('exist');
cy.get('#new-mobile-comment-input-area').type('some text');

View file

@ -17,7 +17,7 @@ describe('Annotation Tests', function() {
it('Insert',function() {
insertMultipleComment('calc');
cy.get('.loleaflet-annotation').should('exist');
cy.get('.cool-annotation').should('exist');
cy.get('#comment-container-1').then(function (element) {
element[0].style.visibility = '';

View file

@ -31,7 +31,7 @@ describe('Annotation Tests', function() {
it('Insert', function() {
insertMultipleComment('impress');
cy.get('.leaflet-marker-icon').should('exist');
cy.get('.loleaflet-annotation-content > div')
cy.get('.cool-annotation-content > div')
.should('contain','some text');
});
@ -42,7 +42,7 @@ describe('Annotation Tests', function() {
cy.get('#annotation-content-area-1').should('contain','some text0');
cy.get('.loleaflet-annotation-content-wrapper:visible .loleaflet-annotation-menu').click();
cy.get('.cool-annotation-content-wrapper:visible .cool-annotation-menu').click();
cy.contains('.context-menu-item','Modify').click();
@ -60,9 +60,9 @@ describe('Annotation Tests', function() {
cy.get('.leaflet-marker-icon').should('exist');
cy.get('.loleaflet-annotation-content > div').should('contain','some text');
cy.get('.cool-annotation-content > div').should('contain','some text');
cy.get('.loleaflet-annotation-content-wrapper:visible .loleaflet-annotation-menu').click();
cy.get('.cool-annotation-content-wrapper:visible .cool-annotation-menu').click();
cy.contains('.context-menu-item','Remove')
.click();
@ -75,9 +75,9 @@ describe('Annotation Tests', function() {
cy.get('.leaflet-marker-icon').should('exist');
cy.get('.loleaflet-annotation-content > div').should('contain','some text');
cy.get('.cool-annotation-content > div').should('contain','some text');
cy.get('.loleaflet-annotation-content-wrapper:visible .loleaflet-annotation-menu').click();
cy.get('.cool-annotation-content-wrapper:visible .cool-annotation-menu').click();
cy.contains('.context-menu-item','Reply').click();
@ -85,7 +85,7 @@ describe('Annotation Tests', function() {
cy.get('#annotation-reply-1').click();
cy.get('.loleaflet-annotation-content > div').should('include.text','some reply text');
cy.get('.cool-annotation-content > div').should('include.text','some reply text');
});
});
@ -114,7 +114,7 @@ describe('Collapsed Annotation Tests', function() {
it('Insert', function() {
insertMultipleComment('impress', 1, true);
cy.get('.leaflet-marker-icon').should('exist');
cy.get('.loleaflet-annotation-content > div')
cy.get('.cool-annotation-content > div')
.should('contain','some text');
});
@ -125,7 +125,7 @@ describe('Collapsed Annotation Tests', function() {
cy.get('#annotation-content-area-1').should('contain','some text0');
cy.get('#mobile-wizard-popup .loleaflet-annotation-menu').click();
cy.get('#mobile-wizard-popup .cool-annotation-menu').click();
cy.contains('.context-menu-item','Modify').click();
@ -143,9 +143,9 @@ describe('Collapsed Annotation Tests', function() {
cy.get('.leaflet-marker-icon').should('exist');
cy.get('.loleaflet-annotation-content > div').should('contain','some text');
cy.get('.cool-annotation-content > div').should('contain','some text');
cy.get('#mobile-wizard-popup .loleaflet-annotation-menu').click();
cy.get('#mobile-wizard-popup .cool-annotation-menu').click();
cy.contains('.context-menu-item','Remove')
.click();
@ -158,9 +158,9 @@ describe('Collapsed Annotation Tests', function() {
cy.get('.leaflet-marker-icon').should('exist');
cy.get('.loleaflet-annotation-content > div').should('contain','some text');
cy.get('.cool-annotation-content > div').should('contain','some text');
cy.get('#mobile-wizard-popup .loleaflet-annotation-menu').click();
cy.get('#mobile-wizard-popup .cool-annotation-menu').click();
cy.contains('.context-menu-item','Reply').click();
@ -168,7 +168,7 @@ describe('Collapsed Annotation Tests', function() {
cy.get('#mobile-wizard-popup #annotation-reply-1').click();
cy.get('.loleaflet-annotation-content > div').should('include.text','some reply text');
cy.get('.cool-annotation-content > div').should('include.text','some reply text');
});
});

View file

@ -32,7 +32,7 @@ describe('Annotation Tests', function() {
it('Insert',function() {
insertMultipleComment('writer');
cy.get('.loleaflet-annotation-content-wrapper').should('exist');
cy.get('.cool-annotation-content-wrapper').should('exist');
cy.get('#annotation-content-area-1').should('contain','some text0');
});
@ -40,7 +40,7 @@ describe('Annotation Tests', function() {
it('Modify',function() {
insertMultipleComment('writer');
cy.get('.loleaflet-annotation-content-wrapper').should('exist');
cy.get('.cool-annotation-content-wrapper').should('exist');
cy.get('#annotation-content-area-1').should('contain','some text0');
@ -52,7 +52,7 @@ describe('Annotation Tests', function() {
cy.get('#annotation-save-1').click();
cy.get('.loleaflet-annotation-content-wrapper').should('exist');
cy.get('.cool-annotation-content-wrapper').should('exist');
cy.get('#annotation-content-area-1').should('contain','some other text, some text0');
});
@ -60,7 +60,7 @@ describe('Annotation Tests', function() {
it('Reply',function() {
insertMultipleComment('writer');
cy.get('.loleaflet-annotation-content-wrapper').should('exist');
cy.get('.cool-annotation-content-wrapper').should('exist');
cy.get('#annotation-content-area-1').should('contain','some text');
@ -78,17 +78,17 @@ describe('Annotation Tests', function() {
it('Remove',function() {
insertMultipleComment('writer');
cy.get('.loleaflet-annotation-content-wrapper').should('exist');
cy.get('.cool-annotation-content-wrapper').should('exist');
cy.get('.loleaflet-annotation-content > div')
cy.get('.cool-annotation-content > div')
.should('contain','some text');
cy.get('.loleaflet-annotation-menu').click();
cy.get('.cool-annotation-menu').click();
cy.contains('.context-menu-item','Remove')
.click();
cy.get('.loleaflet-annotation-content-wrapper')
cy.get('.cool-annotation-content-wrapper')
.should('not.exist');
});
@ -108,7 +108,7 @@ describe('Collapsed Annotation Tests', function() {
it('Insert',function() {
insertMultipleComment('writer', 1, true);
cy.get('.loleaflet-annotation-content-wrapper').should('exist');
cy.get('.cool-annotation-content-wrapper').should('exist');
cy.get('#annotation-content-area-1').should('contain','some text0');
});
@ -116,11 +116,11 @@ describe('Collapsed Annotation Tests', function() {
it('Modify',function() {
insertMultipleComment('writer', 1, true);
cy.get('.loleaflet-annotation-content-wrapper').should('exist');
cy.get('.cool-annotation-content-wrapper').should('exist');
cy.get('#annotation-content-area-1').should('contain','some text0');
cy.get('#comment-container-1 .loleaflet-annotation-collapsed .avatar-img').click();
cy.get('#comment-container-1 .cool-annotation-collapsed .avatar-img').click();
cy.get('#mobile-wizard-popup #comment-annotation-menu-1').click();
@ -130,7 +130,7 @@ describe('Collapsed Annotation Tests', function() {
cy.get('#mobile-wizard-popup #annotation-save-1').click();
cy.get('#mobile-wizard-popup .loleaflet-annotation-content-wrapper').should('exist');
cy.get('#mobile-wizard-popup .cool-annotation-content-wrapper').should('exist');
cy.get('#mobile-wizard-popup #annotation-content-area-1').should('contain','some other text, some text0');
});
@ -138,11 +138,11 @@ describe('Collapsed Annotation Tests', function() {
it('Reply',function() {
insertMultipleComment('writer', 1, true);
cy.get('.loleaflet-annotation-content-wrapper').should('exist');
cy.get('.cool-annotation-content-wrapper').should('exist');
cy.get('#annotation-content-area-1').should('contain','some text');
cy.get('#comment-container-1 .loleaflet-annotation-collapsed .avatar-img').click();
cy.get('#comment-container-1 .cool-annotation-collapsed .avatar-img').click();
cy.get('#mobile-wizard-popup #comment-annotation-menu-1').click();
@ -158,19 +158,19 @@ describe('Collapsed Annotation Tests', function() {
it('Remove',function() {
insertMultipleComment('writer', 1, true);
cy.get('.loleaflet-annotation-content-wrapper').should('exist');
cy.get('.cool-annotation-content-wrapper').should('exist');
cy.get('.loleaflet-annotation-content > div')
cy.get('.cool-annotation-content > div')
.should('contain','some text');
cy.get('#comment-container-1 .loleaflet-annotation-collapsed .avatar-img').click();
cy.get('#comment-container-1 .cool-annotation-collapsed .avatar-img').click();
cy.get('#mobile-wizard-popup .loleaflet-annotation-menu').click();
cy.get('#mobile-wizard-popup .cool-annotation-menu').click();
cy.contains('.context-menu-item','Remove')
.click();
cy.get('.loleaflet-annotation-content-wrapper')
cy.get('.cool-annotation-content-wrapper')
.should('not.exist');
});

View file

@ -274,7 +274,7 @@ describe('Top toolbar tests.', function() {
it('Insert comment.', function() {
desktopHelper.insertMultipleComment('writer', 1, true);
cy.get('.loleaflet-annotation-content-wrapper').should('exist');
cy.get('.cool-annotation-content-wrapper').should('exist');
cy.get('#annotation-content-area-1').should('contain','some text0');
});

View file

@ -74,10 +74,10 @@ describe('Annotation Tests',function() {
cy.contains('.menu-entry-with-icon', 'Comment')
.click();
cy.get('.loleaflet-annotation-table')
cy.get('.cool-annotation-table')
.should('exist');
cy.get('.loleaflet-annotation-textarea')
cy.get('.cool-annotation-textarea')
.should('have.text', '');
cy.get('.vex-dialog-button-primary')
@ -86,10 +86,10 @@ describe('Annotation Tests',function() {
cy.get('.vex-dialog-button-secondary')
.click();
cy.get('.loleaflet-annotation-content-wrapper.wizard-comment-box')
cy.get('.cool-annotation-content-wrapper.wizard-comment-box')
.should('not.exist');
cy.get('.wizard-comment-box .loleaflet-annotation-content')
cy.get('.wizard-comment-box .cool-annotation-content')
.should('not.exist');
});
});

View file

@ -30,7 +30,7 @@ describe('Annotation tests.', function() {
mobileHelper.openCommentWizard();
cy.get('#mobile-wizard .wizard-comment-box .loleaflet-annotation-content')
cy.get('#mobile-wizard .wizard-comment-box .cool-annotation-content')
.should('have.text', 'some text');
cy.get('.leaflet-marker-icon.annotation-marker')
@ -45,22 +45,22 @@ describe('Annotation tests.', function() {
mobileHelper.selectAnnotationMenuItem('Modify');
cy.get('.loleaflet-annotation-table')
cy.get('.cool-annotation-table')
.should('exist');
cy.get('.vex-dialog-form .loleaflet-annotation-textarea')
cy.get('.vex-dialog-form .cool-annotation-textarea')
.should('have.text', 'some text');
cy.get('.vex-dialog-form .loleaflet-annotation-textarea')
cy.get('.vex-dialog-form .cool-annotation-textarea')
.type('modified ');
cy.get('.vex-dialog-button-primary')
.click();
cy.get('#mobile-wizard .wizard-comment-box.loleaflet-annotation-content-wrapper')
cy.get('#mobile-wizard .wizard-comment-box.cool-annotation-content-wrapper')
.should('exist');
cy.get('#mobile-wizard .wizard-comment-box .loleaflet-annotation-content')
cy.get('#mobile-wizard .wizard-comment-box .cool-annotation-content')
.should('have.text', 'modified some text');
});
@ -70,12 +70,12 @@ describe('Annotation tests.', function() {
cy.get('.leaflet-marker-icon.annotation-marker')
.should('be.visible');
cy.get('#mobile-wizard .wizard-comment-box .loleaflet-annotation-content')
cy.get('#mobile-wizard .wizard-comment-box .cool-annotation-content')
.should('have.text', 'some text');
mobileHelper.selectAnnotationMenuItem('Remove');
cy.get('#mobile-wizard .wizard-comment-box .loleaflet-annotation-content')
cy.get('#mobile-wizard .wizard-comment-box .cool-annotation-content')
.should('not.exist');
cy.get('.leaflet-marker-icon.annotation-marker')
@ -88,10 +88,10 @@ describe('Annotation tests.', function() {
cy.contains('.menu-entry-with-icon', 'Comment')
.click();
cy.get('.loleaflet-annotation-table')
cy.get('.cool-annotation-table')
.should('exist');
cy.get('.loleaflet-annotation-textarea')
cy.get('.cool-annotation-textarea')
.should('have.text', '');
cy.get('.vex-dialog-button-primary')
@ -100,10 +100,10 @@ describe('Annotation tests.', function() {
cy.get('.vex-dialog-button-secondary')
.click();
cy.get('.loleaflet-annotation-content-wrapper.wizard-comment-box')
cy.get('.cool-annotation-content-wrapper.wizard-comment-box')
.should('not.exist');
cy.get('#mobile-wizard .wizard-comment-box .loleaflet-annotation-content')
cy.get('#mobile-wizard .wizard-comment-box .cool-annotation-content')
.should('not.exist');
});
});

View file

@ -342,7 +342,7 @@ describe('Changing slide properties.', function() {
// Blank is the default
// TODO: wring item is selected by default
//cy.get('.layout:nth-of-type(1)')
// .should('have.class', 'loleaflet-context-down');
// .should('have.class', 'cool-context-down');
// Select layout with title and content shape
helper.clickOnIdle('.layout:nth-of-type(3)');
@ -356,7 +356,7 @@ describe('Changing slide properties.', function() {
helper.clickOnIdle('#Layouts');
cy.get('.layout:nth-of-type(3)')
.should('have.class', 'loleaflet-context-down');
.should('have.class', 'cool-context-down');
});
it('Change paper format in master view.', function() {

View file

@ -91,10 +91,10 @@ describe('Annotation tests.', function() {
cy.contains('.menu-entry-with-icon', 'Comment')
.click();
cy.get('.loleaflet-annotation-table')
cy.get('.cool-annotation-table')
.should('exist');
cy.get('.loleaflet-annotation-textarea')
cy.get('.cool-annotation-textarea')
.should('have.text', '');
cy.get('.vex-dialog-button-primary')
@ -103,10 +103,10 @@ describe('Annotation tests.', function() {
cy.get('.vex-dialog-button-secondary')
.click();
cy.get('#mobile-wizard .wizard-comment-box.loleaflet-annotation-content-wrapper')
cy.get('#mobile-wizard .wizard-comment-box.cool-annotation-content-wrapper')
.should('not.exist');
cy.get('#mobile-wizard .wizard-comment-box .loleaflet-annotation-content')
cy.get('#mobile-wizard .wizard-comment-box .cool-annotation-content')
.should('not.exist');
});
@ -122,10 +122,10 @@ describe('Annotation tests.', function() {
cy.wait(1000);
cy.get('#mobile-wizard .wizard-comment-box .loleaflet-annotation-content-resolved')
cy.get('#mobile-wizard .wizard-comment-box .cool-annotation-content-resolved')
.should('exist');
cy.get('#mobile-wizard .wizard-comment-box .loleaflet-annotation-content-resolved')
cy.get('#mobile-wizard .wizard-comment-box .cool-annotation-content-resolved')
.should('have.text', 'Resolved');
});
});

View file

@ -39,7 +39,7 @@ describe('Insert objects via insertion wizard.', function() {
.click();
// Comment insertion dialog is opened
cy.get('.loleaflet-annotation-table').should('exist');
cy.get('.cool-annotation-table').should('exist');
// Add some comment
cy.get('#new-mobile-comment-input-area').type('some text');