Skip to content
This repository was archived by the owner on Feb 3, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion example/tests/helpers.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion framework/Element.js
Original file line number Diff line number Diff line change
@@ -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;

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"jest-image-snapshot": "^3.1.0",
"jest-junit": "^10.0.0",
"jest-playwright-preset": "^1.4.2",
"playwright": "^1.8.0",
"playwright": "^1.10.0",
"xml2js": "^0.4.23"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion post-install.js
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
2 changes: 1 addition & 1 deletion test-environment/environment.js
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
File renamed without changes.