refs #5334 basicData e2e
gitea/salix/pipeline/head There was a failure building this commit Details

This commit is contained in:
Carlos Satorres 2023-06-05 08:29:56 +02:00
parent 9ef51f5600
commit c1cda1a3ff
2 changed files with 6 additions and 3 deletions

View File

@ -33,10 +33,9 @@ describe('department summary path', () => {
Email: 'it@verdnatura.es', Email: 'it@verdnatura.es',
}; };
const message = await page.sendForm($.form, values); await page.fillForm($.form, values);
await page.reloadSection('worker.department.card.basicData');
const formValues = await page.fetchForm($.form, Object.keys(values)); const formValues = await page.fetchForm($.form, Object.keys(values));
await page.click(selectors.departmentBasicData.saveButton); const message = await page.sendForm($.form, values);
expect(message.isSuccess).toBeTrue(); expect(message.isSuccess).toBeTrue();
expect(formValues).toEqual(values); expect(formValues).toEqual(values);

View File

@ -12,12 +12,14 @@
vn-one vn-one
label="Name" label="Name"
ng-model="$ctrl.department.name" ng-model="$ctrl.department.name"
vn-name="Name"
rule> rule>
</vn-textfield> </vn-textfield>
<vn-textfield <vn-textfield
vn-one vn-one
label="Code" label="Code"
ng-model="$ctrl.department.code" ng-model="$ctrl.department.code"
vn-name="Code"
rule> rule>
</vn-textfield> </vn-textfield>
</vn-horizontal> </vn-horizontal>
@ -26,12 +28,14 @@
vn-one vn-one
label="Chat" label="Chat"
ng-model="$ctrl.department.chatName" ng-model="$ctrl.department.chatName"
vn-name="Chat"
rule> rule>
</vn-textfield> </vn-textfield>
<vn-textfield <vn-textfield
vn-one vn-one
label="Email" label="Email"
ng-model="$ctrl.department.notificationEmail" ng-model="$ctrl.department.notificationEmail"
vn-name="Email"
rule> rule>
</vn-textfield> </vn-textfield>
</vn-horizontal> </vn-horizontal>