Skip to content

Commit 85465df

Browse files
committed
fix: adjust cypress test to scroll credential fields into view
Signed-off-by: Kent Delante <kent@delante.me> The credential fields (login, password, etc.) are likely to overflow, thus needing to be scrolled into view.
1 parent d0e3a89 commit 85465df

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

cypress/e2e/files_external/settings.cy.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,12 +74,14 @@ describe('files_external settings', () => {
7474
.should('be.visible')
7575
.click()
7676

77-
cy.findByRole('textbox', { name: 'Login' })
78-
.should('be.visible')
77+
cy.findByRole('textbox', { name: 'Login' }).as('login')
78+
cy.get('@login').scrollIntoView()
79+
cy.get('@login').should('be.visible')
7980
.type('admin')
8081

81-
cy.get('input[type="password"]')
82-
.should('be.visible')
82+
cy.get('input[type="password"]').as('password')
83+
cy.get('@password').scrollIntoView()
84+
cy.get('@password').should('be.visible')
8385
.type('admin')
8486

8587
cy.findByRole('button', { name: 'Create' })

0 commit comments

Comments
 (0)