Skip to content

Commit

Permalink
Merge pull request AdaptiveConsulting#2289 from AdaptiveConsulting/ch…
Browse files Browse the repository at this point in the history
…ore/5587-update-playwright-1.38.1

chore: Update playwright from 1.37 > 1.38
  • Loading branch information
stephan-thibodeau authored Oct 4, 2023
2 parents 007ef8c + cb57c9c commit 4f27dae
Show file tree
Hide file tree
Showing 8 changed files with 39 additions and 299 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pull.yml
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ jobs:
with:
node-version: 20.5.1

- name: Install dependencies
- name: Install
run: npm ci

- name: start openfin
Expand Down Expand Up @@ -218,7 +218,7 @@ jobs:
with:
node-version: 20.5.1

- name: Install dependencies
- name: Install
run: npm ci

- name: start openfin
Expand Down
3 changes: 1 addition & 2 deletions packages/client/e2e/fixtures.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { test as base } from "@playwright/test"
import { chromium, Page, test as base } from "@playwright/test"
import * as dotenv from "dotenv"
import { chromium, Page } from "playwright"

import { OPENFIN_PROJECT_NAME } from "./utils"

Expand Down
6 changes: 2 additions & 4 deletions packages/client/e2e/fx.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { expect, selectors } from "@playwright/test"
import { Page } from "playwright"
import { expect, Page, selectors } from "@playwright/test"

import { test } from "./fixtures"
import { OPENFIN_PROJECT_NAME } from "./utils"
Expand Down Expand Up @@ -34,7 +33,6 @@ test.describe("Fx App", () => {

test.skip(testInfo.project.name !== OPENFIN_PROJECT_NAME)


const popOutButtons = mainWindow.getByTitle("open in new window")
const toggleLock = mainWindow.getByTitle("toggle layout lock")

Expand All @@ -60,7 +58,7 @@ test.describe("Fx App", () => {

await expect(mainWindow.locator("text=Live Rates")).toBeVisible()
expect(poppedOutLiveRatesPage.isClosed()).toBeTruthy()

await poppedOutBlotterPage
.locator("[data-qa='openfin-chrome__close']")
.click()
Expand Down
2 changes: 1 addition & 1 deletion packages/client/e2e/limit-checker.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Page } from "playwright"
import { Page } from "@playwright/test"

import { test } from "./fixtures"
import { assertGridCell, assertGridRow, OPENFIN_PROJECT_NAME, Timeout } from "./utils"
Expand Down
5 changes: 2 additions & 3 deletions packages/client/e2e/utils.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import { expect } from "@playwright/test"
import { Locator } from "playwright"
import { expect, Locator } from "@playwright/test"

export const OPENFIN_PROJECT_NAME = "openfin"
export enum Timeout {
AGGRESSIVE = 5000,
NORMAL = 10000,
LONG = 20000
LONG = 20000,
}

export const assertGridRow = async ({
Expand Down
Loading

0 comments on commit 4f27dae

Please sign in to comment.