0
0
Fork 0

refactor: use data-cy in VnSelectSupplier component and refactored e2e

This commit is contained in:
Jon Elias 2025-02-10 13:18:59 +01:00
parent aa6c6f0e69
commit 73f02cf8bd
3 changed files with 5 additions and 2 deletions

View File

@ -15,6 +15,7 @@ const model = defineModel({ type: [String, Number, Object] });
:fields="['id', 'name', 'nickname', 'nif']"
:filter-options="['id', 'name', 'nickname', 'nif']"
sort-by="name ASC"
data-cy="vnSupplierSelect"
>
<template #option="scope">
<QItem v-bind="scope.itemProps">

View File

@ -121,7 +121,6 @@ function deleteFile(dmsFk) {
hide-selected
:is-clearable="false"
:required="true"
data-cy="vnSupplierSelect"
/>
<VnInput
clearable

View File

@ -14,7 +14,10 @@ describe('InvoiceInBasicData', () => {
cy.dataCy('UnDeductibleVatSelect').type('4751000000');
cy.get('.q-menu .q-item').contains('4751000000').click();
cy.get(resetBtn).click();
cy.waitForElement('#formModel').within(() => {
cy.dataCy('vnSupplierSelect').type('Bros nick');
})
cy.get('.q-menu .q-item').contains('Bros nick').click();
cy.saveCard();
cy.get(`${firstFormSelect} input`).invoke('val').should('eq', 'Bros nick');