diff --git a/README.md b/README.md index ccb00e1..b98d105 100644 --- a/README.md +++ b/README.md @@ -16,17 +16,17 @@ ### Default Timeout ### -* Default time in milliseconds for Playwright to wait for an element can be set in framework.config i.e. defaultTimeout: 10000 +* Default time in milliseconds for Playwright to wait for an element can be set in test-juggler.config i.e. defaultTimeout: 10000 ### Performance Tracing ### -* To enable Chrome performance tracing set useTracing to true in framework.config +* To enable Chrome performance tracing set useTracing to true in test-juggler.config * Chromium does not support tracing of different tabs in parallel, so this option will only work when tests are run in serial mode * Use "jest --runInBand" as your "test" command to run tests serially ### Screenshot Capturing ### -* Set captureScreenshots: true in framework.config to enable capturing screenshots on every action. +* Set captureScreenshots: true in test-juggler.config to enable capturing screenshots on every action. * Note that screen capture does not work well with headful browser mode. * There might be some performance degradation when using screenshots capturing. diff --git a/example/tests/helpers.test.js b/example/tests/helpers.test.js index f637333..7c0c372 100644 --- a/example/tests/helpers.test.js +++ b/example/tests/helpers.test.js @@ -63,7 +63,7 @@ describe("Helpers", () => { it("should setup new page", async () => { //Arrange - const config = require(process.cwd() + "/framework.config"); + const config = require(process.cwd() + "/test-juggler.config"); const newPage = await browser.newPage(); //Act diff --git a/framework/Element.js b/framework/Element.js index c0993ec..8cc1460 100644 --- a/framework/Element.js +++ b/framework/Element.js @@ -1,7 +1,7 @@ import Helpers from "./helpers"; const path = require("path"); -const config = require(process.cwd() + "/framework.config"); +const config = require(process.cwd() + "/test-juggler.config"); const defaultTimeout = config.defaultTimeout; const shortTimeout = config.shortTimeout; diff --git a/post-install.js b/post-install.js index b3bb96b..9ce0171 100644 --- a/post-install.js +++ b/post-install.js @@ -8,7 +8,7 @@ var gentlyCopy = require("gently-copy"); -var filesToCopy = ["test-environment", "babel.config.js", "framework.config.js", "jest-playwright.config.js", "jest.config.js", "jsconfig.json"]; +var filesToCopy = ["test-environment", "babel.config.js", "test-juggler.config.js", "jest-playwright.config.js", "jest.config.js", "jsconfig.json"]; if (process.env.DO_NOT_INSTALL_EXAMPLES !== "true") { filesToCopy.push("example"); diff --git a/test-environment/environment.js b/test-environment/environment.js index d2d30ac..f2419c9 100644 --- a/test-environment/environment.js +++ b/test-environment/environment.js @@ -1,6 +1,6 @@ const PlaywrightEnvironment = require("jest-playwright-preset/lib/PlaywrightEnvironment") .default; -const config = require(process.cwd() + "/framework.config"); +const config = require(process.cwd() + "/test-juggler.config"); const fs = require("fs"); class CustomEnvironment extends PlaywrightEnvironment { diff --git a/framework.config.js b/test-juggler.config.js similarity index 100% rename from framework.config.js rename to test-juggler.config.js