Skip to content

Commit

Permalink
Merge pull request #20362 from boubkerbribri/fix-nightly-develop-2807
Browse files Browse the repository at this point in the history
Functional tests -  Fix nightly fails after merging 1.7.7.x into develop
  • Loading branch information
SimonGrn committed Jul 28, 2020
2 parents ce4aa4f + 4bbc87d commit b06864d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Expand Up @@ -107,7 +107,7 @@ describe('Generate PDF file by date', async () => {
await testContext.addContextItem(this, 'testIdentifier', 'checkGeneratedInvoicesPdfFile', baseContext);

// Generate PDF
filePath = await this.pageObjects.invoicesPage.generatePDFByDateAndDownload(page, todayDate, todayDate);
filePath = await invoicesPage.generatePDFByDateAndDownload(page, todayDate, todayDate);

const exist = await files.doesFileExist(filePath);
await expect(exist, 'File does not exist').to.be.true;
Expand Down
Expand Up @@ -128,7 +128,7 @@ describe('Create official currency and check it in FO', async () => {
page = await currenciesPage.viewMyShop(page);

// Check currency
await foHomePage.changeCurrency(Currencies.mad.isoCode, Currencies.mad.symbol);
await foHomePage.changeCurrency(page, Currencies.mad.isoCode, Currencies.mad.symbol);

// Go back to BO
page = await foHomePage.closePage(browserContext, page, 0);
Expand Down Expand Up @@ -188,7 +188,7 @@ describe('Create official currency and check it in FO', async () => {
let textError = '';

try {
await foHomePage.changeCurrency(Currencies.mad.isoCode, Currencies.mad.symbol);
await foHomePage.changeCurrency(page, Currencies.mad.isoCode, Currencies.mad.symbol);
} catch (e) {
textError = e.toString();
}
Expand Down
Expand Up @@ -161,7 +161,7 @@ class SqlManager extends BOBasePage {
this.waitForVisibleSelector(page, `${this.confirmDeleteModal}.show`),
]);
await this.confirmDeleteSQLQuery(page);
return this.getTextContent(this.alertSuccessBlockParagraph);
return this.getTextContent(page, this.alertSuccessBlockParagraph);
}

/**
Expand Down

0 comments on commit b06864d

Please sign in to comment.