Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
tests(cypress): Wait for input to be focused
Signed-off-by: Julius Knorr <[email protected]>
  • Loading branch information
juliusknorr committed Mar 17, 2025
commit 4f45b8ca6ac6bef550d9cf142f33154b3cd39cfd
11 changes: 8 additions & 3 deletions cypress/e2e/Assistant.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,13 +101,18 @@ describe('Assistant', () => {
.should('be.visible')
.click()

cy.wait(1000)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did not figure out a way to make this wort otherwise. For some reason running on CI otherwise focusses the NcSelect 🤷


cy.get('[data-cy="translate-input"]')
.should('be.visible')
.click()
.focus()

cy.wait(1000)

cy.get('[data-cy="translate-input"]')
.should('be.focused')
cy.get('[data-cy="translate-input"]')
.should('be.visible')
.type('Hello World')
cy.get('[data-cy="translate-input"]')
.should('be.focused')
})
})