Rename function

This commit is contained in:
Carlos Alcaide Corvo committed 2021-10-15 08:45:22 -07:00
1 parent 82c7638277
commit 9ad765327d
1 file changed
+3 -3
+3 -3
View File
@@ -4,7 +4,7 @@ const { _electron: electron } = require('playwright');
const path = require('path');
let electronApp = null;
const returnScreenshotPath = (fileName) => {
const generateScreenshotPath = (fileName) => {
const screenshotPath = 'tests/end2end/screenshots/targets/';
const screenshotFormat = '.png';
return path.join(screenshotPath, fileName).concat(screenshotFormat);
@@ -75,7 +75,7 @@ test.describe('Targets end to end test suite', async () => {
await boundaryWindow.waitForSelector('section.dialog-detail');
// Take screenshot
await boundaryWindow.screenshot({
path: returnScreenshotPath('targetConnectionDetails'),
path: generateScreenshotPath('targetConnectionDetails'),
fullPage: true,
});
// Click copyable in popup
@@ -104,7 +104,7 @@ test.describe('Targets end to end test suite', async () => {
// Take screenshot
await boundaryWindow.screenshot({
path: returnScreenshotPath('sessions'),
path: generateScreenshotPath('sessions'),
fullPage: true,
});