Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Update playwright from 1.37 > 1.38 #2289

Merged
merged 8 commits into from
Oct 4, 2023

Conversation

stephan-thibodeau
Copy link
Contributor

@stephan-thibodeau stephan-thibodeau commented Sep 26, 2023

Updated playwright from 1.37.1 > 1.38.1

  • 1.38.1 requires to explicitly install required browsers. I've updated the specific ci workflows to download chromium prior to run the test
  • Removing playwright dev-dependency and migrate import usage to @playwright/test
  • Updated README to explicitly mention the need to install chromium if it never been installed

Tested locally for both web and openfin ✅

@stephan-thibodeau stephan-thibodeau changed the title chore: Remove playwright dependency and update import chore: Update playwright from 1.37 > 1.38 Sep 26, 2023
@stephan-thibodeau stephan-thibodeau force-pushed the chore/5587-update-playwright-1.38.1 branch from d6c7171 to 488b1bf Compare September 26, 2023 18:58
@stephan-thibodeau stephan-thibodeau force-pushed the chore/5587-update-playwright-1.38.1 branch from 488b1bf to 893f2af Compare September 26, 2023 21:32
@github-actions
Copy link

(auto-deploy) A deployment has been created for this Pull Request

Preview links

As part of the code review process, please ensure that you test against the following

Version URL
Web https://web.env.reactivetrader.com/pull/2289
OpenFin - FX fins://openfin.env.reactivetrader.com/pull/2289/config/rt-fx.json
OpenFin - Credit fins://openfin.env.reactivetrader.com/pull/2289/config/rt-credit.json
OpenFin - Launcher fins://openfin.env.reactivetrader.com/pull/2289/config/launcher.json
OpenFin - Workspace fins://openfin.env.reactivetrader.com/pull/2289/workspace/config/workspace.json
Finsemble https://finsemble.env.reactivetrader.com/pull/2289

Performance

Please ensure that this PR does not degrade the performance of the UI. We should maintain a performance score of 95+.

https://developers.google.com/speed/pagespeed/insights/?url=https://web.env.reactivetrader.com/pull/2289

run: npm ci
run: |
npm ci
npx playwright install --with-deps chromium
Copy link
Contributor Author

@stephan-thibodeau stephan-thibodeau Sep 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

installing chromium only when required

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am doubtful about installing browsers .. we have not needed to do that previously (unless it was happening behind the scenes somehow). Can we start with lowest touch approach, and refine from there i.e. what is the minimum setup required to complete the tests.
Also - what version of Chromium??

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see https://playwright.dev/docs/browsers#google-chrome--microsoft-edge
we can run against the Chrome that is surely available on CI .. let's try it at least
certainly should not be installing every time we run a job (surely?)

@stephan-thibodeau stephan-thibodeau self-assigned this Sep 26, 2023
run: npm ci
run: |
npm ci
npx playwright install --with-deps chromium
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am doubtful about installing browsers .. we have not needed to do that previously (unless it was happening behind the scenes somehow). Can we start with lowest touch approach, and refine from there i.e. what is the minimum setup required to complete the tests.
Also - what version of Chromium??

.github/workflows/pull.yml Show resolved Hide resolved
.github/workflows/pull.yml Show resolved Hide resolved
@@ -192,6 +192,12 @@ There seems to be some issues with storybook cache on some machines, we can solv

How to run e2e tests against the web

Install chromium if not already installed
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this should be mandatory when running locally .. we will already have browser installations as web developers. This is making me think we should have regular tests against Firefox too, just to mix it up a bit.

packages/client/package.json Show resolved Hide resolved
@stephan-thibodeau stephan-thibodeau force-pushed the chore/5587-update-playwright-1.38.1 branch from 494ea85 to 8394f2b Compare October 2, 2023 18:45
@stephan-thibodeau stephan-thibodeau force-pushed the chore/5587-update-playwright-1.38.1 branch from cafa6cf to 07a9707 Compare October 4, 2023 15:21
@stephan-thibodeau stephan-thibodeau force-pushed the chore/5587-update-playwright-1.38.1 branch from 07a9707 to cb57c9c Compare October 4, 2023 15:39
Copy link
Contributor

@algreasley algreasley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice and neat and up-to-date 😄

@stephan-thibodeau stephan-thibodeau merged commit 4f27dae into master Oct 4, 2023
@stephan-thibodeau stephan-thibodeau deleted the chore/5587-update-playwright-1.38.1 branch October 4, 2023 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants