test: refs #8440 enhance visibility check and typing delay for adding new vehicle notes
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details

This commit is contained in:
Jose Antonio Tubau 2025-03-04 09:01:30 +01:00
parent ef0ac17d88
commit ad96392cba
1 changed files with 4 additions and 1 deletions

View File

@ -16,7 +16,10 @@ describe('Vehicle Notes', () => {
}); });
it('Should add new note', () => { it('Should add new note', () => {
cy.dataCy(selectors.addNoteInput).click().type(newNoteText); cy.dataCy(selectors.addNoteInput)
.should('be.visible')
.click()
.type(newNoteText, { delay: 100 });
cy.dataCy(selectors.saveNoteBtn).click(); cy.dataCy(selectors.saveNoteBtn).click();
cy.validateContent(selectors.noteCard, newNoteText); cy.validateContent(selectors.noteCard, newNoteText);
}); });