summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGökay Şatır <gokaysatir@gmail.com>2023-08-16 12:47:36 +0300
committerGökay ŞATIR <gokaysatir@gmail.com>2023-08-16 14:30:14 +0300
commit9fd60f55e074a4e565b0214cd994f9d49644aed4 (patch)
tree7c9d62e46c4937b4b7b45db960888af992a69cea
parentCalc - Add remaining tabs' accessibility definitions. (diff)
downloadonline-9fd60f55e074a4e565b0214cd994f9d49644aed4.tar.gz
online-9fd60f55e074a4e565b0214cd994f9d49644aed4.zip
Update Cypress tests.
Signed-off-by: Gökay Şatır <gokaysatir@gmail.com> Change-Id: I7bc9bca411f8caade56a56e9de16ad31921db16c
-rw-r--r--cypress_test/integration_tests/desktop/calc/annotation_spec.js8
-rw-r--r--cypress_test/integration_tests/desktop/calc/cell_appearance_spec.js2
-rw-r--r--cypress_test/integration_tests/desktop/calc/row_column_operation_spec.js14
3 files changed, 12 insertions, 12 deletions
diff --git a/cypress_test/integration_tests/desktop/calc/annotation_spec.js b/cypress_test/integration_tests/desktop/calc/annotation_spec.js
index 5d1533e740..8c3472afe1 100644
--- a/cypress_test/integration_tests/desktop/calc/annotation_spec.js
+++ b/cypress_test/integration_tests/desktop/calc/annotation_spec.js
@@ -18,7 +18,7 @@ describe(['tagdesktop'], 'Annotation Tests', function() {
});
it('Insert',function() {
- insertMultipleComment('calc');
+ insertMultipleComment('calc', 1, false, '[id=insert-insert-annotation]');
cy.cGet('.cool-annotation').should('exist');
cy.cGet('#comment-container-1').then(function (element) {
@@ -30,7 +30,7 @@ describe(['tagdesktop'], 'Annotation Tests', function() {
});
it('Modify',function() {
- insertMultipleComment('calc');
+ insertMultipleComment('calc', 1, false, '[id=insert-insert-annotation]');
cy.cGet('#comment-container-1').should('exist');
@@ -54,7 +54,7 @@ describe(['tagdesktop'], 'Annotation Tests', function() {
});
it('Reply should not be possible', function() {
- insertMultipleComment('calc');
+ insertMultipleComment('calc', 1, false, '[id=insert-insert-annotation]');
cy.cGet('#comment-container-1').should('exist');
@@ -69,7 +69,7 @@ describe(['tagdesktop'], 'Annotation Tests', function() {
});
it('Remove',function() {
- insertMultipleComment('calc');
+ insertMultipleComment('calc', 1, false, '[id=insert-insert-annotation]');
cy.cGet('#comment-container-1').should('exist');
diff --git a/cypress_test/integration_tests/desktop/calc/cell_appearance_spec.js b/cypress_test/integration_tests/desktop/calc/cell_appearance_spec.js
index 8f654deef6..79abb183c8 100644
--- a/cypress_test/integration_tests/desktop/calc/cell_appearance_spec.js
+++ b/cypress_test/integration_tests/desktop/calc/cell_appearance_spec.js
@@ -20,7 +20,7 @@ describe(['tagdesktop'], 'Change cell appearance.', function() {
desktopHelper.switchUIToNotebookbar();
calcHelper.clickOnFirstCell();
cy.cGet('#Home').click();
- cy.cGet('.cell.notebookbar .unospan-BackgroundColor .arrowbackground').click();
+ cy.cGet('#Home-container #BackgroundColor .arrowbackground').click();
desktopHelper.selectColorFromPalette('006CE7');
calcHelper.selectEntireSheet();
cy.cGet('#copy-paste-container table td').should('have.attr', 'bgcolor', '#006CE7');
diff --git a/cypress_test/integration_tests/desktop/calc/row_column_operation_spec.js b/cypress_test/integration_tests/desktop/calc/row_column_operation_spec.js
index ef937af35a..64b335be81 100644
--- a/cypress_test/integration_tests/desktop/calc/row_column_operation_spec.js
+++ b/cypress_test/integration_tests/desktop/calc/row_column_operation_spec.js
@@ -21,40 +21,40 @@ describe(['tagdesktop'], 'Row Column Operation', function() {
it('Insert/Delete row' , function() {
//Insert row above
- cy.cGet('.cell.notebookbar #InsertColumnsBefore').click();
+ cy.cGet('#home-insert-columns-before-button').click();
calcHelper.selectEntireSheet();
//calcHelper.assertDataClipboardTable(['','','Hello','Hi','World','Bye']);
//delete row
calcHelper.clickOnFirstCell(true, false);
- cy.cGet('.cell.notebookbar #DeleteRows').click();
+ cy.cGet('#home-delete-rows-button').click();
calcHelper.selectEntireSheet();
//calcHelper.assertDataClipboardTable(['Hello','Hi','World','Bye']);
//insert row below
calcHelper.clickOnFirstCell(true, false);
- cy.cGet('.cell.notebookbar #InsertRowsAfter').click();
+ cy.cGet('#home-insert-rows-after-button').click();
calcHelper.selectEntireSheet();
//calcHelper.assertDataClipboardTable(['Hello','Hi','','','World','Bye']);
});
- it('Insert/Delete Column', function() {
+ it.only('Insert/Delete Column', function() {
//insert column before
- cy.cGet('.cell.notebookbar #InsertColumnsBefore').click();
+ cy.cGet('#home-insert-columns-before-button').click();
calcHelper.selectEntireSheet();
//calcHelper.assertDataClipboardTable(['','Hello','Hi','','World','Bye']);
calcHelper.clickOnFirstCell(true, false);
//delete column
- cy.cGet('.cell.notebookbar #DeleteColumns').click();
+ cy.cGet('#home-delete-columns-button').click();
calcHelper.selectEntireSheet();
cy.wait(500);
//calcHelper.assertDataClipboardTable(['Hello','Hi','World','Bye']);
calcHelper.clickOnFirstCell(true,false);
//insert column after
- cy.cGet('.cell.notebookbar #InsertColumnsAfter').click();
+ cy.cGet('#home-insert-columns-after-button').click();
calcHelper.selectEntireSheet();
//calcHelper.assertDataClipboardTable(['Hello','','Hi','World','','Bye']);
});