diff --git a/e2e/paths/06-claim/03_detail.spec.js b/e2e/paths/06-claim/02_detail.spec.js
similarity index 98%
rename from e2e/paths/06-claim/03_detail.spec.js
rename to e2e/paths/06-claim/02_detail.spec.js
index ddcfd9302..eb4ac5d71 100644
--- a/e2e/paths/06-claim/03_detail.spec.js
+++ b/e2e/paths/06-claim/02_detail.spec.js
@@ -1,5 +1,5 @@
import selectors from '../../helpers/selectors.js';
-import getBrowser from '../../helpers/puppeteer';
+import getBrowser from '../../helpers/puppeteer.js';
// #1528 e2e claim/detail
xdescribe('Claim detail', () => {
diff --git a/e2e/paths/06-claim/02_development.spec.js b/e2e/paths/06-claim/02_development.spec.js
deleted file mode 100644
index b7352dcc2..000000000
--- a/e2e/paths/06-claim/02_development.spec.js
+++ /dev/null
@@ -1,97 +0,0 @@
-import selectors from '../../helpers/selectors.js';
-import getBrowser from '../../helpers/puppeteer';
-
-describe('Claim development', () => {
- let browser;
- let page;
-
- beforeAll(async() => {
- browser = await getBrowser();
- page = browser.page;
- await page.loginAndModule('claimManager', 'claim');
- await page.accessToSearchResult('1');
- await page.accessToSection('claim.card.development');
- });
-
- afterAll(async() => {
- await browser.close();
- });
-
- it('should delete a development and create a new one', async() => {
- await page.waitToClick(selectors.claimDevelopment.firstDeleteDevelopmentButton);
- await page.waitToClick(selectors.claimDevelopment.addDevelopmentButton);
- await page.autocompleteSearch(selectors.claimDevelopment.secondClaimReason, 'Baja calidad');
- await page.autocompleteSearch(selectors.claimDevelopment.secondClaimResult, 'Deshidratacion');
- await page.autocompleteSearch(selectors.claimDevelopment.secondClaimResponsible, 'Calidad general');
- await page.autocompleteSearch(selectors.claimDevelopment.secondClaimWorker, 'deliveryNick');
- await page.autocompleteSearch(selectors.claimDevelopment.secondClaimRedelivery, 'Reparto');
- await page.waitToClick(selectors.claimDevelopment.saveDevelopmentButton);
- const message = await page.waitForSnackbar();
-
- expect(message.text).toContain('Data saved!');
- });
-
- it(`should redirect to the next section of claims as the role is claimManager`, async() => {
- await page.waitForState('claim.card.action');
- });
-
- it('should edit a development', async() => {
- await page.reloadSection('claim.card.development');
- await page.autocompleteSearch(selectors.claimDevelopment.firstClaimReason, 'Calor');
- await page.autocompleteSearch(selectors.claimDevelopment.firstClaimResult, 'Cocido');
- await page.autocompleteSearch(selectors.claimDevelopment.firstClaimResponsible, 'Calidad general');
- await page.autocompleteSearch(selectors.claimDevelopment.firstClaimWorker, 'adminAssistantNick');
- await page.autocompleteSearch(selectors.claimDevelopment.firstClaimRedelivery, 'Cliente');
- await page.waitToClick(selectors.claimDevelopment.saveDevelopmentButton);
- const message = await page.waitForSnackbar();
-
- expect(message.text).toContain('Data saved!');
- });
-
- it('should confirm the first development is the expected one', async() => {
- await page.reloadSection('claim.card.development');
- const reason = await page
- .waitToGetProperty(selectors.claimDevelopment.firstClaimReason, 'value');
-
- const result = await page
- .waitToGetProperty(selectors.claimDevelopment.firstClaimResult, 'value');
-
- const responsible = await page
- .waitToGetProperty(selectors.claimDevelopment.firstClaimResponsible, 'value');
-
- const worker = await page
- .waitToGetProperty(selectors.claimDevelopment.firstClaimWorker, 'value');
-
- const redelivery = await page
- .waitToGetProperty(selectors.claimDevelopment.firstClaimRedelivery, 'value');
-
- expect(reason).toEqual('Calor');
- expect(result).toEqual('Baboso/Cocido');
- expect(responsible).toEqual('Calidad general');
- expect(worker).toEqual('adminAssistantNick');
- expect(redelivery).toEqual('Cliente');
- });
-
- it('should confirm the second development is the expected one', async() => {
- const reason = await page
- .waitToGetProperty(selectors.claimDevelopment.secondClaimReason, 'value');
-
- const result = await page
- .waitToGetProperty(selectors.claimDevelopment.secondClaimResult, 'value');
-
- const responsible = await page
- .waitToGetProperty(selectors.claimDevelopment.secondClaimResponsible, 'value');
-
- const worker = await page
- .waitToGetProperty(selectors.claimDevelopment.secondClaimWorker, 'value');
-
- const redelivery = await page
- .waitToGetProperty(selectors.claimDevelopment.secondClaimRedelivery, 'value');
-
- expect(reason).toEqual('Baja calidad');
- expect(result).toEqual('Deshidratacion');
- expect(responsible).toEqual('Calidad general');
- expect(worker).toEqual('deliveryNick');
- expect(redelivery).toEqual('Reparto');
- });
-});
diff --git a/e2e/paths/06-claim/04_claim_action.spec.js b/e2e/paths/06-claim/03_claim_action.spec.js
similarity index 97%
rename from e2e/paths/06-claim/04_claim_action.spec.js
rename to e2e/paths/06-claim/03_claim_action.spec.js
index 62a0ac232..ac6f72e37 100644
--- a/e2e/paths/06-claim/04_claim_action.spec.js
+++ b/e2e/paths/06-claim/03_claim_action.spec.js
@@ -1,5 +1,5 @@
import selectors from '../../helpers/selectors.js';
-import getBrowser from '../../helpers/puppeteer';
+import getBrowser from '../../helpers/puppeteer.js';
describe('Claim action path', () => {
let browser;
diff --git a/e2e/paths/06-claim/05_summary.spec.js b/e2e/paths/06-claim/04_summary.spec.js
similarity index 98%
rename from e2e/paths/06-claim/05_summary.spec.js
rename to e2e/paths/06-claim/04_summary.spec.js
index 1333ed01a..dda8484a6 100644
--- a/e2e/paths/06-claim/05_summary.spec.js
+++ b/e2e/paths/06-claim/04_summary.spec.js
@@ -1,6 +1,6 @@
import selectors from '../../helpers/selectors.js';
-import getBrowser from '../../helpers/puppeteer';
+import getBrowser from '../../helpers/puppeteer.js';
describe('Claim summary path', () => {
let browser;
diff --git a/e2e/paths/06-claim/06_descriptor.spec.js b/e2e/paths/06-claim/05_descriptor.spec.js
similarity index 97%
rename from e2e/paths/06-claim/06_descriptor.spec.js
rename to e2e/paths/06-claim/05_descriptor.spec.js
index 059bd68dd..49912b26a 100644
--- a/e2e/paths/06-claim/06_descriptor.spec.js
+++ b/e2e/paths/06-claim/05_descriptor.spec.js
@@ -1,5 +1,5 @@
import selectors from '../../helpers/selectors.js';
-import getBrowser from '../../helpers/puppeteer';
+import getBrowser from '../../helpers/puppeteer.js';
describe('Claim descriptor path', () => {
let browser;
diff --git a/e2e/paths/06-claim/07_note.spec.js b/e2e/paths/06-claim/06_note.spec.js
similarity index 100%
rename from e2e/paths/06-claim/07_note.spec.js
rename to e2e/paths/06-claim/06_note.spec.js
diff --git a/modules/claim/front/development/index.html b/modules/claim/front/development/index.html
index 1684541ea..7fb3b870e 100644
--- a/modules/claim/front/development/index.html
+++ b/modules/claim/front/development/index.html
@@ -1,116 +1,2 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
diff --git a/modules/claim/front/development/index.js b/modules/claim/front/development/index.js
index 04569f0aa..7b31bd17f 100644
--- a/modules/claim/front/development/index.js
+++ b/modules/claim/front/development/index.js
@@ -1,17 +1,14 @@
import ngModule from '../module';
import Section from 'salix/components/section';
-import './style.scss';
class Controller extends Section {
- onSubmit() {
- this.$.watcher.check();
- this.$.model.save().then(() => {
- this.$.watcher.notifySaved();
- this.$.watcher.updateOriginalData();
+ constructor($element, $) {
+ super($element, $);
+ }
- if (this.aclService.hasAny(['claimManager']))
- this.$state.go('claim.card.action');
- });
+ async $onInit() {
+ this.$state.go('claim.card.summary', {id: this.$params.id});
+ window.location.href = await this.vnApp.getUrl(`claim/${this.$params.id}/development`);
}
}
diff --git a/modules/claim/front/development/index.spec.js b/modules/claim/front/development/index.spec.js
deleted file mode 100644
index e2574ccb9..000000000
--- a/modules/claim/front/development/index.spec.js
+++ /dev/null
@@ -1,31 +0,0 @@
-import './index.js';
-import watcher from 'core/mocks/watcher';
-import crudModel from 'core/mocks/crud-model';
-
-describe('Claim', () => {
- describe('Component vnClaimDevelopment', () => {
- let controller;
- let $scope;
-
- beforeEach(ngModule('claim'));
-
- beforeEach(inject(($componentController, $rootScope) => {
- $scope = $rootScope.$new();
- $scope.watcher = watcher;
- $scope.model = crudModel;
- const $element = angular.element('');
- controller = $componentController('vnClaimDevelopment', {$element, $scope});
- }));
-
- describe('onSubmit()', () => {
- it(`should redirect to 'claim.card.action' state`, () => {
- jest.spyOn(controller.aclService, 'hasAny').mockReturnValue(true);
- jest.spyOn(controller.$state, 'go');
-
- controller.onSubmit();
-
- expect(controller.$state.go).toHaveBeenCalledWith('claim.card.action');
- });
- });
- });
-});
diff --git a/modules/claim/front/development/locale/es.yml b/modules/claim/front/development/locale/es.yml
deleted file mode 100644
index c0c4ed184..000000000
--- a/modules/claim/front/development/locale/es.yml
+++ /dev/null
@@ -1,8 +0,0 @@
-Destination: Destino
-Development: Trazabilidad
-Reason: Motivo
-Result: Consecuencia
-Responsible: Responsable
-Worker: Trabajador
-Redelivery: DevoluciĆ³n
-Add line: AƱadir Linea
\ No newline at end of file
diff --git a/modules/claim/front/development/style.scss b/modules/claim/front/development/style.scss
deleted file mode 100644
index e69de29bb..000000000