Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ssadhu-sl committed May 21, 2024
1 parent 9962256 commit 5ba3cb7
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions test/PageObjectModels/uploadFilePage.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}

0 comments on commit 5ba3cb7

Please sign in to comment.