stowaway test included + supplier contact refactor
gitea/salix/pipeline/head Build started... Details

This commit is contained in:
Carlos Jimenez Ruiz 2020-11-05 15:58:02 +01:00
parent e72869df6b
commit 223c8a8528
2 changed files with 5 additions and 2 deletions

View File

@ -103,8 +103,7 @@ describe('Ticket descriptor path', () => {
expect(message.text).toBe('Data saved!'); expect(message.text).toBe('Data saved!');
}); });
xit(`should check the state of the stowaway ticket is embarked`, async() => { it(`should check the state of the stowaway ticket is embarked`, async() => {
await page.wait(500);
const state = await page.waitToGetProperty(selectors.ticketDescriptor.stateLabelValue, 'innerText'); const state = await page.waitToGetProperty(selectors.ticketDescriptor.stateLabelValue, 'innerText');
expect(state).toEqual('State Embarcando'); expect(state).toEqual('State Embarcando');

View File

@ -69,6 +69,10 @@ describe('Supplier contact path', () => {
it(`should remove the created contact`, async() => { it(`should remove the created contact`, async() => {
await page.waitToClick(selectors.supplierContact.thirdContactDeleteButton, 'value'); await page.waitToClick(selectors.supplierContact.thirdContactDeleteButton, 'value');
const result = await page.countElement(selectors.supplierContact.anyContact);
expect(result).toEqual(2);
await page.waitToClick(selectors.supplierContact.saveButton); await page.waitToClick(selectors.supplierContact.saveButton);
const message = await page.waitForSnackbar(); const message = await page.waitForSnackbar();