diff --git a/.gitignore b/.gitignore index a942d2e1..d11d794d 100644 --- a/.gitignore +++ b/.gitignore @@ -338,3 +338,6 @@ eFormAPI/eFormAPI.Web/Plugins/Customers/net5.0/* eFormAPI/eFormAPI\.Web/Plugins/Customers/netcoreapp2\.2/ eFormAPI/eFormAPI\.Web/Plugins/Customers/netcoreapp3\.1/ + +# E2E Test screenshots +errorShots/ diff --git a/eform-client/wdio-headless-plugin-step2.conf.ts b/eform-client/wdio-headless-plugin-step2.conf.ts index b6854b0b..6b12fc1b 100644 --- a/eform-client/wdio-headless-plugin-step2.conf.ts +++ b/eform-client/wdio-headless-plugin-step2.conf.ts @@ -258,7 +258,8 @@ export const config: Options.Testrunner = { `chrome-${timestamp}`.replace(/[/]/g, '__') ).replace(/%../, '.'); - const filePath = path.resolve(this.screenshotPath, `${filename}.png`); + const screenshotPath = './errorShots/'; + const filePath = path.resolve(screenshotPath, `${filename}.png`); console.log('Saving screenshot to:', filePath); browser.saveScreenshot(filePath); diff --git a/eform-client/wdio-plugin-step2.conf.ts b/eform-client/wdio-plugin-step2.conf.ts index cf1dddb9..45853239 100644 --- a/eform-client/wdio-plugin-step2.conf.ts +++ b/eform-client/wdio-plugin-step2.conf.ts @@ -258,7 +258,8 @@ export const config: Options.Testrunner = { `chrome-${timestamp}`.replace(/[/]/g, '__') ).replace(/%../, '.'); - const filePath = path.resolve(this.screenshotPath, `${filename}.png`); + const screenshotPath = './errorShots/'; + const filePath = path.resolve(screenshotPath, `${filename}.png`); console.log('Saving screenshot to:', filePath); browser.saveScreenshot(filePath);