This commit is contained in:
parent
258da0f60b
commit
991ef7b243
|
@ -93,6 +93,7 @@ const mixinRules = [
|
|||
:rules="mixinRules"
|
||||
:lazy-rules="true"
|
||||
hide-bottom-space
|
||||
:data-cy="$attrs.dataCy ?? $attrs.label + '_input'"
|
||||
>
|
||||
<template v-if="$slots.prepend" #prepend>
|
||||
<slot name="prepend" />
|
||||
|
|
|
@ -283,6 +283,7 @@ async function onScroll({ to, direction, from, index }) {
|
|||
:input-debounce="useURL ? '300' : '0'"
|
||||
:loading="isLoading"
|
||||
@virtual-scroll="onScroll"
|
||||
:data-cy="$attrs.dataCy ?? $attrs.label + '_select'"
|
||||
>
|
||||
<template v-if="isClearable" #append>
|
||||
<QIcon
|
||||
|
|
|
@ -0,0 +1,28 @@
|
|||
describe('WorkerPit', () => {
|
||||
const familySituationInput = '[data-cy="Family Situation_input"]';
|
||||
const familySituation = '1';
|
||||
const disabilityGradesSelect = '[data-cy="Disability Grades_select"]';
|
||||
const childPensionInput = '[data-cy="Child Pension_input"]';
|
||||
const childPension = '120';
|
||||
|
||||
beforeEach(() => {
|
||||
cy.viewport(1920, 1080);
|
||||
cy.login('developer');
|
||||
cy.visit(`/#/worker/1107/pit`);
|
||||
});
|
||||
|
||||
it('complete PIT', () => {
|
||||
cy.get(familySituationInput).type(familySituation);
|
||||
cy.get(disabilityGradesSelect).click('{downArrow}{enter}');
|
||||
cy.get(childPensionInput).type(childPension);
|
||||
// cy.get('.q-notification__message').should('have.text', 'Data created');
|
||||
});
|
||||
|
||||
// it('delete pda', () => {
|
||||
// cy.get('.q-card > .q-item > .q-item__section--side > .q-icon').click();
|
||||
// cy.get(
|
||||
// '.q-card__actions > .q-btn--unelevated > .q-btn__content > .block'
|
||||
// ).click();
|
||||
// cy.get('.q-notification__message').should('have.text', 'PDA deallocated');
|
||||
// });
|
||||
});
|
Loading…
Reference in New Issue