chore(ci): Invert line checking order in version_restoration

I cannot figure out why the closing of the menu is failing on github CI,
 I do not reproduce locally.
So I simply inverted the checking order so that the menu is not in front
 of the next button we want to click.

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
Côme Chilliet 2026-05-11 10:40:35 +02:00 committed by backportbot[bot]
parent a9655a5db3
commit bcbb294390

View file

@ -69,7 +69,7 @@ describe('Versions restoration', () => {
cy.get('[data-files-versions-version]').eq(0).find('.action-item__menutoggle').should('not.exist')
cy.get('[data-files-versions-version]').eq(0).get('[data-cy-version-action="restore"]').should('not.exist')
doesNotHaveAction(1, 'restore')
doesNotHaveAction(2, 'restore')
doesNotHaveAction(1, 'restore')
})
})