Adjust upper bound value for assertScrollbarPosition

- Added the correct bound value for updated slimmer status bar

Signed-off-by: Darshan-upadhyay1110 <darshan.upadhyay@collabora.com>
Change-Id: Ia272b3bd02710720004821f144b5408042e61d02
This commit is contained in:
Darshan-upadhyay1110 2024-07-19 14:24:42 +05:30 committed by pedropintosilva
parent b2937725ea
commit ad5db34dd2

View file

@ -21,7 +21,7 @@ describe(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Sheet switching tests', fu
// go to sheet 2 // go to sheet 2
cy.cGet('#spreadsheet-tab1').click(); cy.cGet('#spreadsheet-tab1').click();
cy.cGet('input#addressInput-input').should('have.prop', 'value', 'F720'); cy.cGet('input#addressInput-input').should('have.prop', 'value', 'F720');
desktopHelper.assertScrollbarPosition('vertical', 320, 330); desktopHelper.assertScrollbarPosition('vertical', 320, 335);
cy.cGet('input#addressInput-input').type('{selectAll}A2{enter}'); cy.cGet('input#addressInput-input').type('{selectAll}A2{enter}');
desktopHelper.assertScrollbarPosition('vertical', 15, 25); desktopHelper.assertScrollbarPosition('vertical', 15, 25);
@ -30,12 +30,12 @@ describe(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Sheet switching tests', fu
it('Check view position on repeated selection of currently selected sheet', function() { it('Check view position on repeated selection of currently selected sheet', function() {
// initially we are on sheet 2 tab // initially we are on sheet 2 tab
cy.cGet('input#addressInput-input').should('have.prop', 'value', 'F720'); cy.cGet('input#addressInput-input').should('have.prop', 'value', 'F720');
desktopHelper.assertScrollbarPosition('vertical', 320, 330); desktopHelper.assertScrollbarPosition('vertical', 320, 335);
// click on sheet 2 tab (yes, current one) // click on sheet 2 tab (yes, current one)
cy.cGet('#spreadsheet-tab1').click(); cy.cGet('#spreadsheet-tab1').click();
cy.cGet('input#addressInput-input').should('have.prop', 'value', 'F720'); cy.cGet('input#addressInput-input').should('have.prop', 'value', 'F720');
desktopHelper.assertScrollbarPosition('vertical', 320, 330); desktopHelper.assertScrollbarPosition('vertical', 320, 335);
// go to different place in the spreadsheet // go to different place in the spreadsheet
cy.cGet('input#addressInput-input').type('{selectAll}A2{enter}'); cy.cGet('input#addressInput-input').type('{selectAll}A2{enter}');