#1321 E2E claims - Cambiar al siguiente estado
gitea/salix/dev There was a failure building this commit
Details
gitea/salix/dev There was a failure building this commit
Details
This commit is contained in:
parent
d5eec3721f
commit
e2f243454a
|
@ -24,10 +24,19 @@ describe('Claim development', () => {
|
|||
.waitForLastSnackbar();
|
||||
|
||||
expect(result).toEqual('Data saved!');
|
||||
}, 15000);
|
||||
|
||||
it(`should redirect to the next section of claims as the role is salesAssistant`, async() => {
|
||||
const url = await nightmare
|
||||
.waitForURL('/action')
|
||||
.parsedUrl();
|
||||
|
||||
expect(url.hash).toContain('/action');
|
||||
});
|
||||
|
||||
it('should edit a development', async() => {
|
||||
const result = await nightmare
|
||||
.reloadSection('claim.card.development')
|
||||
.autocompleteSearch(selectors.claimDevelopment.firstClaimReasonAutocomplete, 'Calor')
|
||||
.autocompleteSearch(selectors.claimDevelopment.firstClaimResultAutocomplete, 'Cocido')
|
||||
.autocompleteSearch(selectors.claimDevelopment.firstClaimResponsibleAutocomplete, 'Calidad general')
|
||||
|
@ -98,6 +107,7 @@ describe('Claim development', () => {
|
|||
|
||||
it('should confirm the second development was auto filled', async() => {
|
||||
const reason = await nightmare
|
||||
.reloadSection('claim.card.development')
|
||||
.waitToGetProperty(`${selectors.claimDevelopment.secondClaimReasonAutocomplete} input`, 'value');
|
||||
|
||||
const result = await nightmare
|
||||
|
|
Loading…
Reference in New Issue