fix(e2e): order basic data e2e now uses a valid agency
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Carlos Jimenez Ruiz 2021-08-31 13:51:19 +02:00
parent 9cdf34642f
commit 0de3755d09
1 changed files with 2 additions and 2 deletions

View File

@ -76,7 +76,7 @@ describe('Order edit basic data path', () => {
it('should be able to modify all the properties', async() => { it('should be able to modify all the properties', async() => {
await page.autocompleteSearch(selectors.orderBasicData.client, 'Tony Stark'); await page.autocompleteSearch(selectors.orderBasicData.client, 'Tony Stark');
await page.autocompleteSearch(selectors.orderBasicData.address, 'Tony Stark'); await page.autocompleteSearch(selectors.orderBasicData.address, 'Tony Stark');
await page.autocompleteSearch(selectors.orderBasicData.agency, 'Silla247'); await page.autocompleteSearch(selectors.orderBasicData.agency, 'Other agency');
await page.write(selectors.orderBasicData.observation, 'my observation'); await page.write(selectors.orderBasicData.observation, 'my observation');
await page.waitToClick(selectors.orderBasicData.saveButton); await page.waitToClick(selectors.orderBasicData.saveButton);
const message = await page.waitForSnackbar(); const message = await page.waitForSnackbar();
@ -96,7 +96,7 @@ describe('Order edit basic data path', () => {
const result = await page const result = await page
.waitToGetProperty(selectors.orderBasicData.agency, 'value'); .waitToGetProperty(selectors.orderBasicData.agency, 'value');
expect(result).toEqual('7: Silla247'); expect(result).toEqual('Other agency');
}); });
it('should now confirm the observations have been edited', async() => { it('should now confirm the observations have been edited', async() => {