Skip to content

Commit

Permalink
Required Cypress changes after using a section for impress comment ma…
Browse files Browse the repository at this point in the history
…rker.

Signed-off-by: Gökay Şatır <[email protected]>
Change-Id: I089b0d26164773ef752a2c106dc8295a737745b4
  • Loading branch information
gokaysatir committed Jan 20, 2025
1 parent 7049b78 commit 09c6935
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 67 deletions.
62 changes: 31 additions & 31 deletions cypress_test/integration_tests/desktop/impress/annotation_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,34 +23,34 @@ describe(['tagdesktop'], 'Annotation Tests', function() {

it('Insert', function() {
desktopHelper.insertComment();
cy.cGet('.leaflet-marker-icon').should('exist');
cy.cGet('.annotation-marker').should('exist');
cy.cGet('.cool-annotation-content > div').should('contain','some text');
});

it('Modify', function() {
desktopHelper.insertComment();
cy.cGet('.leaflet-marker-icon').should('exist');
cy.cGet('.annotation-marker').should('exist');
cy.cGet('#annotation-content-area-1').should('contain','some text0');
cy.cGet('.cool-annotation-content-wrapper:visible .cool-annotation-menu').click();
cy.cGet('body').contains('.context-menu-item','Modify').click();
cy.cGet('#annotation-modify-textarea-1').type(', some other text');
cy.cGet('#annotation-save-1').click();
cy.cGet('#annotation-content-area-1').should('contain','some text0, some other text');
cy.cGet('.leaflet-marker-icon').should('exist');
cy.cGet('.annotation-marker').should('exist');
});

it('Remove',function() {
desktopHelper.insertComment();
cy.cGet('.leaflet-marker-icon').should('exist');
cy.cGet('.annotation-marker').should('exist');
cy.cGet('.cool-annotation-content > div').should('contain','some text');
cy.cGet('.cool-annotation-content-wrapper:visible .cool-annotation-menu').click();
cy.cGet('body').contains('.context-menu-item','Remove').click();
cy.cGet('.leaflet-marker-icon').should('not.exist');
cy.cGet('.annotation-marker').should('not.exist');
});

it('Reply',function() {
desktopHelper.insertComment();
cy.cGet('.leaflet-marker-icon').should('exist');
cy.cGet('.annotation-marker').should('exist');
cy.cGet('.cool-annotation-content > div').should('contain','some text');
cy.cGet('.cool-annotation-content-wrapper:visible .cool-annotation-menu').click();
cy.cGet('body').contains('.context-menu-item','Reply').click();
Expand All @@ -77,38 +77,38 @@ describe(['tagdesktop'], 'Collapsed Annotation Tests', function() {
desktopHelper.selectZoomLevel('50');
});

it.only('Insert', function() {
it('Insert', function() {
desktopHelper.insertComment();
cy.cGet('.leaflet-marker-icon').should('exist');
cy.cGet('.annotation-marker').should('exist');
cy.cGet('.cool-annotation-content > div').should('contain','some text');
});

it('Modify', function() {
desktopHelper.insertComment();
cy.cGet('.leaflet-marker-icon').should('exist');
cy.cGet('.annotation-marker').should('exist');
cy.cGet('#annotation-content-area-1').should('contain','some text0');
cy.cGet('.cool-annotation-table .avatar-img').click();
cy.cGet('.cool-annotation-menu').click();
cy.cGet('body').contains('.context-menu-item','Modify').click();
cy.cGet('#annotation-modify-textarea-1').type(', some other text');
cy.cGet('#annotation-save-1').click();
cy.cGet('#annotation-content-area-1').should('contain','some text0, some other text');
cy.cGet('.leaflet-marker-icon').should('exist');
cy.cGet('.annotation-marker').should('exist');
});

it('Remove',function() {
desktopHelper.insertComment();
cy.cGet('.leaflet-marker-icon').should('exist');
cy.cGet('.annotation-marker').should('exist');
cy.cGet('.cool-annotation-content > div').should('contain','some text');
cy.cGet('.cool-annotation-table .avatar-img').click();
cy.cGet('.cool-annotation-menu').click();
cy.cGet('body').contains('.context-menu-item','Remove').click();
cy.cGet('.leaflet-marker-icon').should('not.exist');
cy.cGet('.annotation-marker').should('not.exist');
});

it('Reply',function() {
desktopHelper.insertComment();
cy.cGet('.leaflet-marker-icon').should('exist');
cy.cGet('.annotation-marker').should('exist');
cy.cGet('.cool-annotation-content > div').should('contain','some text');
cy.cGet('.cool-annotation-table .avatar-img').click();
cy.cGet('.cool-annotation-menu').click();
Expand Down Expand Up @@ -156,10 +156,10 @@ describe(['tagdesktop'], 'Comment Scrolling',function() {
it('no comment or one comment', function() {
cy.cGet('.leaflet-control-scroll-down').should('not.exist');
desktopHelper.insertComment();
cy.cGet('.leaflet-marker-icon').should('exist');
cy.cGet('.annotation-marker').should('exist');
});

it('omit slides without comments', function() {
it.skip('omit slides without comments', function() {
//scroll up
desktopHelper.insertComment();
addSlide(2);
Expand Down Expand Up @@ -218,7 +218,7 @@ describe(['tagdesktop'], 'Annotation Autosave Tests', function() {
cy.cGet('.cool-annotation-edit.modify-annotation').should('be.visible');

helper.reloadDocument(newFilePath);
cy.cGet('.leaflet-marker-icon').should('exist');
cy.cGet('.annotation-marker').should('exist');
cy.cGet('.cool-annotation-content > div').should('have.text','some text0');
});

Expand All @@ -230,11 +230,11 @@ describe(['tagdesktop'], 'Annotation Autosave Tests', function() {
cy.cGet('#annotation-save-1').click();
cy.cGet('.cool-annotation-autosavelabel').should('be.not.visible');
cy.cGet('.cool-annotation-edit.modify-annotation').should('be.not.visible');
cy.cGet('.leaflet-marker-icon').should('exist');
cy.cGet('.annotation-marker').should('exist');
cy.cGet('.cool-annotation-content > div').should('have.text','some text0');

helper.reloadDocument(newFilePath);
cy.cGet('.leaflet-marker-icon').should('exist');
cy.cGet('.annotation-marker').should('exist');
cy.cGet('.cool-annotation-content > div').should('have.text','some text0');
});

Expand All @@ -246,17 +246,17 @@ describe(['tagdesktop'], 'Annotation Autosave Tests', function() {
cy.cGet('#annotation-cancel-1').click();
cy.cGet('.cool-annotation-autosavelabel').should('not.exist');
cy.cGet('.cool-annotation-edit.modify-annotation').should('not.exist');
cy.cGet('.leaflet-marker-icon').should('not.exist');
cy.cGet('.annotation-marker').should('not.exist');
cy.cGet('.cool-annotation-content > div').should('not.exist');

helper.reloadDocument(newFilePath);
cy.cGet('.leaflet-marker-icon').should('not.exist');
cy.cGet('.annotation-marker').should('not.exist');
cy.cGet('.cool-annotation-content > div').should('not.exist');
});

it('Modify autosave', function() {
desktopHelper.insertComment();
cy.cGet('.leaflet-marker-icon').should('exist');
cy.cGet('.annotation-marker').should('exist');
cy.cGet('#annotation-content-area-1').should('have.text','some text0');
cy.cGet('.cool-annotation-content-wrapper:visible .cool-annotation-menu').click();
cy.cGet('body').contains('.context-menu-item','Modify').click();
Expand All @@ -266,13 +266,13 @@ describe(['tagdesktop'], 'Annotation Autosave Tests', function() {
cy.cGet('.cool-annotation-edit.modify-annotation').should('be.visible');

helper.reloadDocument(newFilePath);
cy.cGet('.leaflet-marker-icon').should('exist');
cy.cGet('.annotation-marker').should('exist');
cy.cGet('.cool-annotation-content > div').should('have.text','some text0, some other text');
});

it('Modify autosave save', function() {
desktopHelper.insertComment();
cy.cGet('.leaflet-marker-icon').should('exist');
cy.cGet('.annotation-marker').should('exist');
cy.cGet('#annotation-content-area-1').should('have.text','some text0');
cy.cGet('.cool-annotation-content-wrapper:visible .cool-annotation-menu').click();
cy.cGet('body').contains('.context-menu-item','Modify').click();
Expand All @@ -282,16 +282,16 @@ describe(['tagdesktop'], 'Annotation Autosave Tests', function() {
cy.cGet('.cool-annotation-edit.modify-annotation').should('be.visible');
cy.cGet('#annotation-save-1').click();
cy.cGet('#annotation-content-area-1').should('have.text','some text0, some other text');
cy.cGet('.leaflet-marker-icon').should('exist');
cy.cGet('.annotation-marker').should('exist');

helper.reloadDocument(newFilePath);
cy.cGet('.leaflet-marker-icon').should('exist');
cy.cGet('.annotation-marker').should('exist');
cy.cGet('.cool-annotation-content > div').should('have.text','some text0, some other text');
});

it('Modify autosave cancel', function() {
desktopHelper.insertComment();
cy.cGet('.leaflet-marker-icon').should('exist');
cy.cGet('.annotation-marker').should('exist');
cy.cGet('#annotation-content-area-1').should('have.text','some text0');
cy.cGet('.cool-annotation-content-wrapper:visible .cool-annotation-menu').click();
cy.cGet('body').contains('.context-menu-item','Modify').click();
Expand All @@ -301,16 +301,16 @@ describe(['tagdesktop'], 'Annotation Autosave Tests', function() {
cy.cGet('.cool-annotation-edit.modify-annotation').should('be.visible');
cy.cGet('#annotation-cancel-1').click();
cy.cGet('#annotation-content-area-1').should('have.text','some text0');
cy.cGet('.leaflet-marker-icon').should('exist');
cy.cGet('.annotation-marker').should('exist');

helper.reloadDocument(newFilePath);
cy.cGet('.leaflet-marker-icon').should('exist');
cy.cGet('.annotation-marker').should('exist');
cy.cGet('.cool-annotation-content > div').should('have.text','some text0');
});

it('Reply autosave',function() {
desktopHelper.insertComment();
cy.cGet('.leaflet-marker-icon').should('exist');
cy.cGet('.annotation-marker').should('exist');
cy.cGet('.cool-annotation-content > div').should('have.text','some text0');
cy.cGet('.cool-annotation-content-wrapper:visible .cool-annotation-menu').click();
cy.cGet('body').contains('.context-menu-item','Reply').click();
Expand All @@ -328,7 +328,7 @@ describe(['tagdesktop'], 'Annotation Autosave Tests', function() {

it('Reply autosave save',function() {
desktopHelper.insertComment();
cy.cGet('.leaflet-marker-icon').should('exist');
cy.cGet('.annotation-marker').should('exist');
cy.cGet('.cool-annotation-content > div').should('have.text','some text0');
cy.cGet('.cool-annotation-content-wrapper:visible .cool-annotation-menu').click();
cy.cGet('body').contains('.context-menu-item','Reply').click();
Expand All @@ -351,7 +351,7 @@ describe(['tagdesktop'], 'Annotation Autosave Tests', function() {

it('Reply autosave cancel',function() {
desktopHelper.insertComment();
cy.cGet('.leaflet-marker-icon').should('exist');
cy.cGet('.annotation-marker').should('exist');
cy.cGet('.cool-annotation-content > div').should('have.text','some text0');
cy.cGet('.cool-annotation-content-wrapper:visible .cool-annotation-menu').click();
cy.cGet('body').contains('.context-menu-item','Reply').click();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@ describe(['tagmobile'], 'Annotation tests.', function() {
it('Remove comment.', function() {
mobileHelper.insertComment();

cy.cGet('.leaflet-marker-icon.annotation-marker').should('be.visible');
cy.cGet('.annotation-marker').should('be.visible');
cy.cGet('#mobile-wizard .wizard-comment-box .cool-annotation-content').should('have.text', 'some text');

mobileHelper.selectAnnotationMenuItem('Remove');

cy.cGet('#mobile-wizard .wizard-comment-box .cool-annotation-content').should('not.exist');
cy.cGet('.leaflet-marker-icon.annotation-marker').should('not.exist');
cy.cGet('.annotation-marker').should('not.exist');
});

it('Try to insert empty comment.', function() {
Expand Down
Loading

0 comments on commit 09c6935

Please sign in to comment.