From 0d838c26f13fb7b0883d64d9b07e611a6b3b6921 Mon Sep 17 00:00:00 2001 From: Darshan-upadhyay1110 Date: Thu, 4 Apr 2024 13:03:00 +0530 Subject: [PATCH] Update cypress test for toolbar_spec - Now as we hide the button for none edit modified - we need to check for items visiblity and not the disabled attr Signed-off-by: Darshan-upadhyay1110 Change-Id: Ic0b1765cd12381ea359a8ff65dd88a350d9e9f33 --- cypress_test/integration_tests/mobile/writer/toolbar_spec.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cypress_test/integration_tests/mobile/writer/toolbar_spec.js b/cypress_test/integration_tests/mobile/writer/toolbar_spec.js index 4ffc1b2ed..8f004177a 100644 --- a/cypress_test/integration_tests/mobile/writer/toolbar_spec.js +++ b/cypress_test/integration_tests/mobile/writer/toolbar_spec.js @@ -17,7 +17,7 @@ describe(['tagmobile', 'tagnextcloud', 'tagproxy'], 'Toolbar tests', function() it('State of mobile wizard toolbar item.', function() { // Mobile wizard toolbar button is disabled by default - cy.cGet('#toolbar-up #mobile_wizard').should('have.attr', 'disabled'); + cy.cGet('#toolbar-up #mobile_wizard').should('not.be.visible'); // Click on edit button mobileHelper.enableEditingMobile(); // Button should be enabled now @@ -26,7 +26,7 @@ describe(['tagmobile', 'tagnextcloud', 'tagproxy'], 'Toolbar tests', function() it('State of insertion mobile wizard toolbar item.', function() { // Insertion mobile wizard toolbar button is disabled by default - cy.cGet('#toolbar-up #insertion_mobile_wizard').should('have.attr', 'disabled'); + cy.cGet('#toolbar-up #insertion_mobile_wizard').should('not.be.visible'); // Click on edit button mobileHelper.enableEditingMobile(); // Button should be enabled now