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

Tamás Zolnai (via logerrit) logerrit at kemper.freedesktop.org
Wed Feb 19 10:03:39 UTC 2020


 cypress_test/integration_tests/mobile/writer/shape_properties_spec.js |   27 ++++++++++
 1 file changed, 27 insertions(+)

New commits:
commit 2e9f59280c3964864aa0c811adc18c56d7448d5b
Author:     Tamás Zolnai <tamas.zolnai at collabora.com>
AuthorDate: Tue Feb 18 18:04:09 2020 +0100
Commit:     Tamás Zolnai <tamas.zolnai at collabora.com>
CommitDate: Wed Feb 19 11:03:22 2020 +0100

    cypress: mobile: Test that the arrow style item are hidden.
    
    Change-Id: I958357acb912176070e45ac331b38d42ba24cd15
    Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88975
    Tested-by: Tamás Zolnai <tamas.zolnai at collabora.com>
    Reviewed-by: Tamás Zolnai <tamas.zolnai at collabora.com>

diff --git a/cypress_test/integration_tests/mobile/writer/shape_properties_spec.js b/cypress_test/integration_tests/mobile/writer/shape_properties_spec.js
index 8461fde23..2630670ca 100644
--- a/cypress_test/integration_tests/mobile/writer/shape_properties_spec.js
+++ b/cypress_test/integration_tests/mobile/writer/shape_properties_spec.js
@@ -338,4 +338,31 @@ describe('Change shape properties via mobile wizard.', function() {
 		cy.get('.leaflet-pane.leaflet-overlay-pane svg g svg g g g defs mask linearGradient')
 			.should('exist');
 	});
+
+	it('Arrow style items are hidden.', function() {
+		// TODO: Two issues are found here with core/master
+		// 1) The mobile wizard keeps rerendering after it was already opened which leads
+		// detached item error.
+		// 2) Layout of the line properties panel is completely broken.
+		if (Cypress.env('LO_CORE_VERSION') === 'master')
+			return;
+
+		// Open mobile wizard
+		cy.get('#tb_actionbar_item_mobile_wizard')
+			.click();
+
+		// Change line transparency
+		cy.get('#LinePropertyPanel')
+			.click();
+
+		cy.get('#linestyle')
+			.should('be.visible');
+
+		cy.get('#beginarrowstyle')
+			.should('not.exist');
+
+		cy.get('#endarrowstyle')
+			.should('not.exist');
+
+	});
 });


More information about the Libreoffice-commits mailing list