diff --git a/e2e/paths/03-worker/01-department/02-basicData.spec.js b/e2e/paths/03-worker/01-department/02-basicData.spec.js index b901f66a1..219d1426c 100644 --- a/e2e/paths/03-worker/01-department/02-basicData.spec.js +++ b/e2e/paths/03-worker/01-department/02-basicData.spec.js @@ -33,10 +33,9 @@ describe('department summary path', () => { Email: 'it@verdnatura.es', }; - const message = await page.sendForm($.form, values); - await page.reloadSection('worker.department.card.basicData'); + await page.fillForm($.form, 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(formValues).toEqual(values); diff --git a/modules/worker/front/department/basic-data/index.html b/modules/worker/front/department/basic-data/index.html index d8a3ac921..9d5382569 100644 --- a/modules/worker/front/department/basic-data/index.html +++ b/modules/worker/front/department/basic-data/index.html @@ -12,12 +12,14 @@ vn-one label="Name" ng-model="$ctrl.department.name" + vn-name="Name" rule> @@ -26,12 +28,14 @@ vn-one label="Chat" ng-model="$ctrl.department.chatName" + vn-name="Chat" rule>