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 <darshan.upadhyay@collabora.com>
Change-Id: Ic0b1765cd12381ea359a8ff65dd88a350d9e9f33
This commit is contained in:
Darshan-upadhyay1110 2024-04-04 13:03:00 +05:30 committed by Szymon Kłos
parent 86cb7081e6
commit 0d838c26f1

View file

@ -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