[Libreoffice-commits] online.git: cypress_test/integration_tests

Tamás Zolnai (via logerrit) logerrit at kemper.freedesktop.org
Fri Feb 7 09:23:50 UTC 2020


 cypress_test/integration_tests/mobile/apply_font_spec.js                 |    8 ++++----
 cypress_test/integration_tests/mobile/apply_paragraph_properties_spec.js |    4 ++--
 cypress_test/integration_tests/mobile/bottom_toolbar_spec.js             |    6 ------
 3 files changed, 6 insertions(+), 12 deletions(-)

New commits:
commit 7124587e70102374026b4214975a388b8d2d555c
Author:     Tamás Zolnai <tamas.zolnai at collabora.com>
AuthorDate: Fri Feb 7 10:22:57 2020 +0100
Commit:     Tamás Zolnai <tamas.zolnai at collabora.com>
CommitDate: Fri Feb 7 10:23:05 2020 +0100

    cypress: mobile: Update ColorPicker related tests.
    
    Which were failing after a recent commit:
    6dc92fb8122aa0c283f84dc0ce7d1ee98ac8640b
    
    Change-Id: I79939c7bc7e2a26f6a235c5079976cd5adb31959

diff --git a/cypress_test/integration_tests/mobile/apply_font_spec.js b/cypress_test/integration_tests/mobile/apply_font_spec.js
index e47f94473..52dd9fc0f 100644
--- a/cypress_test/integration_tests/mobile/apply_font_spec.js
+++ b/cypress_test/integration_tests/mobile/apply_font_spec.js
@@ -196,7 +196,7 @@ describe('Apply font changes.', function() {
 		cy.get('#color-picker-0-basic-color-5')
 			.click();
 
-		cy.get('#color-picker-0-tint-3')
+		cy.get('#color-picker-0-tint-2')
 			.click();
 
 		cy.get('#mobile-wizard-back')
@@ -211,7 +211,7 @@ describe('Apply font changes.', function() {
 		helper.copyTextToClipboard();
 
 		cy.get('#copy-paste-container p font')
-			.should('have.attr', 'color', '#00ff00');
+			.should('have.attr', 'color', '#6aa84f');
 	});
 
 	it('Apply highlight color.', function() {
@@ -222,7 +222,7 @@ describe('Apply font changes.', function() {
 		cy.get('#color-picker-1-basic-color-5')
 			.click();
 
-		cy.get('#color-picker-1-tint-3')
+		cy.get('#color-picker-1-tint-4')
 			.click();
 
 		cy.get('#mobile-wizard-back')
@@ -237,7 +237,7 @@ describe('Apply font changes.', function() {
 		helper.copyTextToClipboard();
 
 		cy.get('#copy-paste-container p font span')
-			.should('have.attr', 'style', 'background: #00ff00');
+			.should('have.attr', 'style', 'background: #93c47d');
 	});
 
 	it('Apply superscript.', function() {
diff --git a/cypress_test/integration_tests/mobile/apply_paragraph_properties_spec.js b/cypress_test/integration_tests/mobile/apply_paragraph_properties_spec.js
index bb0845172..ea2c71ab8 100644
--- a/cypress_test/integration_tests/mobile/apply_paragraph_properties_spec.js
+++ b/cypress_test/integration_tests/mobile/apply_paragraph_properties_spec.js
@@ -200,7 +200,7 @@ describe('Apply paragraph properties.', function() {
 		cy.get('#color-picker-2-basic-color-5')
 			.click();
 
-		cy.get('#color-picker-2-tint-3')
+		cy.get('#color-picker-2-tint-2')
 			.click();
 
 		cy.get('#mobile-wizard-back')
@@ -215,7 +215,7 @@ describe('Apply paragraph properties.', function() {
 		cy.get('#copy-paste-container p')
 			.then(function(item) {
 				expect(item).to.have.lengthOf(1);
-				expect(item[0].style['background']).to.be.equal('rgb(0, 255, 0)');
+				expect(item[0].style['background']).to.be.equal('rgb(106, 168, 79)');
 			});
 	});
 
diff --git a/cypress_test/integration_tests/mobile/bottom_toolbar_spec.js b/cypress_test/integration_tests/mobile/bottom_toolbar_spec.js
index 994e7d30a..6a718ff0c 100644
--- a/cypress_test/integration_tests/mobile/bottom_toolbar_spec.js
+++ b/cypress_test/integration_tests/mobile/bottom_toolbar_spec.js
@@ -88,9 +88,6 @@ describe('Pushing bottom toolbar items.', function() {
 		cy.get('#color-picker-0-basic-color-7')
 			.click();
 
-		cy.get('#color-picker-0-tint-3')
-			.click();
-
 		cy.get('.w2ui-tb-image.w2ui-icon.textcolor')
 			.should('have.attr', 'style', 'box-shadow: rgb(255, 255, 255) 0px -2px inset, rgb(0, 0, 255) 0px -6px inset;');
 
@@ -107,9 +104,6 @@ describe('Pushing bottom toolbar items.', function() {
 		cy.get('#color-picker-0-basic-color-9')
 			.click();
 
-		cy.get('#color-picker-0-tint-3')
-			.click();
-
 		cy.get('.w2ui-tb-image.w2ui-icon.backcolor')
 			.should('have.attr', 'style', 'box-shadow: rgb(255, 255, 255) 0px -2px inset, rgb(255, 0, 255) 0px -6px inset;');
 


More information about the Libreoffice-commits mailing list