From 5ba3cb7de90568e4adb502a06c655beadf5bf80e Mon Sep 17 00:00:00 2001 From: Samriti Sadhu Date: Tue, 21 May 2024 10:27:35 +0100 Subject: [PATCH] lint fix --- test/PageObjectModels/uploadFilePage.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/test/PageObjectModels/uploadFilePage.js b/test/PageObjectModels/uploadFilePage.js index 6bb3d13a..cd7e40d8 100644 --- a/test/PageObjectModels/uploadFilePage.js +++ b/test/PageObjectModels/uploadFilePage.js @@ -12,17 +12,16 @@ export default class UploadFilePage extends BasePage { await this.page.getByText('Upload data').click() const fileChooser = await fileChooserPromise await fileChooser.setFiles(filePath) - } async clickContinue (skipVerification) { await super.clickContinue() await this.page.waitForTimeout(10000) - const screenshotPath = 'test/datafiles/screenshot.png'; - const screenshotBuffer = await this.page.screenshot(); - fs.writeFileSync(screenshotPath, screenshotBuffer); - console.log(`Screenshot saved to: ${screenshotPath}`); - console.log("URL here:",this.page.url()) + const screenshotPath = 'test/datafiles/screenshot.png' + const screenshotBuffer = await this.page.screenshot() + fs.writeFileSync(screenshotPath, screenshotBuffer) + console.log(`Screenshot saved to: ${screenshotPath}`) + console.log('URL here:', this.page.url()) return await super.verifyAndReturnPage(StatusPage, skipVerification) } }