adapted e2e path for full run
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Carlos Jimenez Ruiz 2020-11-17 18:07:04 +01:00
parent 71f0a19320
commit 7dff246e46
2 changed files with 2 additions and 4 deletions

View File

@ -41,7 +41,6 @@ describe('Client balance path', () => {
it('should click the new payment button', async() => {
await page.closePopup();
await page.reloadSection('client.card.balance.index');
await page.waitForState('client.card.balance.index');
});
it('should create a new payment that clears the debt', async() => {

View File

@ -9,7 +9,7 @@ describe('Travel descriptor path', () => {
browser = await getBrowser();
page = browser.page;
await page.loginAndModule('buyer', 'travel');
await page.accessToSearchResult('3');
await page.accessToSearchResult('1');
await page.waitForState('travel.card.summary');
});
@ -20,10 +20,9 @@ describe('Travel descriptor path', () => {
it('should click the descriptor button to navigate to the travel index showing all travels with current agency', async() => {
await page.waitToClick(selectors.travelDescriptor.filterByAgencyButton);
await page.waitForState('travel.index');
await page.waitForNumberOfElements(selectors.travelIndex.anySearchResult, 8);
const result = await page.countElement(selectors.travelIndex.anySearchResult);
expect(result).toEqual(8);
expect(result).toBeGreaterThanOrEqual(7);
});
it('should navigate to the first search result', async() => {