Mixin performance #875
|
@ -32,7 +32,12 @@ const agencyOptions = ref([]);
|
|||
<FormModel :url="`Zones/${route.params.id}`" auto-load model="zone">
|
||||
<template #form="{ data, validate }">
|
||||
<VnRow>
|
||||
<VnInput :label="t('Name')" clearable v-model="data.name" />
|
||||
<VnInput
|
||||
data-cy="zone-basic-data-name"
|
||||
:label="t('Name')"
|
||||
clearable
|
||||
v-model="data.name"
|
||||
/>
|
||||
</VnRow>
|
||||
|
||||
<VnRow>
|
||||
|
|
|
@ -8,7 +8,7 @@ describe('ZoneBasicData', () => {
|
|||
});
|
||||
|
||||
it('should throw an error if the name is empty', () => {
|
||||
cy.get('.q-card > :nth-child(1)').clear();
|
||||
cy.get('[data-cy="zone-basic-data-name"] input').type('{selectall}{backspace}');
|
||||
cy.get('.q-btn-group > .q-btn--standard').click();
|
||||
cy.get(notification).should('contains.text', "can't be blank");
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue