Skip to content

Commit b237095

Browse files
committed
Trying to increase the stability of tests
1 parent 2ec3c9a commit b237095

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

components/assistive-playwright-client/jest.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,6 @@ module.exports = {
2727
},
2828
testEnvironment: "../../tools/code-coverage/jestEnv",
2929
testMatch: ["<rootDir>/test/**/*.spec.ts"],
30-
testPathIgnorePatterns: ["<rootDir>/test/e2e/"]
30+
testPathIgnorePatterns: ["<rootDir>/test/e2e/"],
31+
testTimeout: 30000
3132
};

components/assistive-playwright-client/test/withServerNoVM.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,14 @@ describe("with server and no vm", () => {
4444
});
4545

4646
it("should create a page in chromium", async () => {
47-
const { chromium } = connectRemotePlaywright("http://localhost:8885");
47+
const { chromium } = connectRemotePlaywright("http://127.0.0.1:8885");
4848
const instance = await chromium.launch();
4949
try {
5050
const context = await instance.newContext();
5151
try {
5252
const page = await context.newPage();
5353
try {
54-
const response = await page.goto("http://localhost:8885");
54+
const response = await page.goto("http://127.0.0.1:8885");
5555
const json = await response!.json();
5656
expect(json).toEqual({ server: "assistive-playwright-server" });
5757
} finally {
@@ -67,7 +67,7 @@ describe("with server and no vm", () => {
6767

6868
it("should receive messages from the screen reader", async () => {
6969
const screenReader = await ScreenReaderClient.create(
70-
"ws://localhost:8885/screen-reader"
70+
"ws://127.0.0.1:8885/screen-reader"
7171
);
7272
expect(screenReader.connected).toBe(true);
7373
const socketTCP = createConnection(8886, "127.0.0.1");

components/assistive-webdriver/jest.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,5 @@ module.exports = {
2727
},
2828
testEnvironment: "../../tools/code-coverage/jestEnv",
2929
testMatch: ["<rootDir>/test/**/*.spec.ts"],
30-
testTimeout: 10000
30+
testTimeout: 30000
3131
};

0 commit comments

Comments
 (0)