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

Tamás Zolnai (via logerrit) logerrit at kemper.freedesktop.org
Mon Feb 24 16:16:44 UTC 2020


 cypress_test/integration_tests/mobile/writer/apply_paragraph_properties_spec.js |   25 ++--------
 1 file changed, 5 insertions(+), 20 deletions(-)

New commits:
commit 55b4fb9ec756209b3523287340c5902144777b57
Author:     Tamás Zolnai <tamas.zolnai at collabora.com>
AuthorDate: Mon Feb 24 16:33:10 2020 +0100
Commit:     Tamás Zolnai <tamas.zolnai at collabora.com>
CommitDate: Mon Feb 24 17:16:26 2020 +0100

    cypress: mobile: simplify this test.
    
    Change-Id: Iaf076f35eeabd7609da024a4f3236a52e69bb543
    Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89362
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
    Reviewed-by: Tamás Zolnai <tamas.zolnai at collabora.com>

diff --git a/cypress_test/integration_tests/mobile/writer/apply_paragraph_properties_spec.js b/cypress_test/integration_tests/mobile/writer/apply_paragraph_properties_spec.js
index df8cc63a3..7994da125 100644
--- a/cypress_test/integration_tests/mobile/writer/apply_paragraph_properties_spec.js
+++ b/cypress_test/integration_tests/mobile/writer/apply_paragraph_properties_spec.js
@@ -35,30 +35,15 @@ describe('Apply paragraph properties.', function() {
 		cy.get('#CenterPara')
 			.click();
 
-		// Close mobile wizard
-		cy.get('#tb_actionbar_item_mobile_wizard')
-			.click();
-
-		helper.copyTextToClipboard();
-
-		cy.get('#copy-paste-container p')
-			.should('have.attr', 'align', 'center');
-
-		// Select text
-		helper.selectAllMobile();
+		cy.get('#CenterParaimg')
+			.should('have.class', 'selected');
 
-		// Open mobile wizard
-		cy.get('#tb_actionbar_item_mobile_wizard')
-			.click();
-
-		// Open paragraph properties
-		cy.get('#Paragraph')
-			.click();
-
-		// Change alignment
 		cy.get('#LeftPara')
 			.click();
 
+		cy.get('#LeftParaimg')
+			.should('have.class', 'selected');
+
 		// Close mobile wizard
 		cy.get('#tb_actionbar_item_mobile_wizard')
 			.click();


More information about the Libreoffice-commits mailing list