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

playwright base url override #1280

Merged
merged 34 commits into from
Dec 14, 2023
Merged

playwright base url override #1280

merged 34 commits into from
Dec 14, 2023

Conversation

gumaerc
Copy link
Collaborator

@gumaerc gumaerc commented Nov 14, 2023

What are the relevant tickets?

Closes #1285

Description (What does it do?)

This PR looks at a new env variable, PLAYWRIGHT_BASE_URL, for a base URL to run Playwright tests against. If this variable is set, none of the steps in global-setup.ts are performed. Playwright proceeds to run its tests targeting the site denoted by PLAYWRIGHT_BASE_URL.

How can this be tested?

This PR will mostly be tested as part of mitodl/ocw-studio#2018, although you should be able to still run yarn test:e2e locally and everything should still function. Github Actions end to end tests should also still pass.

@github-actions github-actions bot temporarily deployed to pull request November 14, 2023 00:46 Inactive
@github-actions github-actions bot temporarily deployed to pull request November 14, 2023 00:46 Inactive
Copy link

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

@gumaerc gumaerc force-pushed the cg/playwright-external-site branch from 430eb70 to 14ac2e2 Compare November 16, 2023 00:33
@github-actions github-actions bot temporarily deployed to pull request November 16, 2023 00:35 Inactive
@github-actions github-actions bot temporarily deployed to pull request November 16, 2023 00:35 Inactive
@github-actions github-actions bot temporarily deployed to pull request November 16, 2023 00:56 Inactive
@github-actions github-actions bot temporarily deployed to pull request November 16, 2023 00:56 Inactive
@github-actions github-actions bot temporarily deployed to pull request November 16, 2023 01:16 Inactive
@github-actions github-actions bot temporarily deployed to pull request November 16, 2023 01:16 Inactive
@github-actions github-actions bot temporarily deployed to pull request November 16, 2023 01:29 Inactive
@github-actions github-actions bot temporarily deployed to pull request November 16, 2023 01:29 Inactive
@github-actions github-actions bot temporarily deployed to pull request November 16, 2023 01:47 Inactive
@github-actions github-actions bot temporarily deployed to pull request November 16, 2023 01:48 Inactive
@github-actions github-actions bot temporarily deployed to pull request November 16, 2023 02:39 Inactive
@github-actions github-actions bot temporarily deployed to pull request November 16, 2023 02:39 Inactive
@github-actions github-actions bot temporarily deployed to pull request November 16, 2023 02:53 Inactive
@github-actions github-actions bot temporarily deployed to pull request November 16, 2023 02:53 Inactive
@github-actions github-actions bot temporarily deployed to pull request November 16, 2023 03:03 Inactive
@github-actions github-actions bot temporarily deployed to pull request November 16, 2023 03:03 Inactive
@github-actions github-actions bot temporarily deployed to pull request November 16, 2023 03:19 Inactive
@github-actions github-actions bot temporarily deployed to pull request November 16, 2023 03:19 Inactive
@github-actions github-actions bot temporarily deployed to pull request November 16, 2023 03:56 Inactive
@github-actions github-actions bot temporarily deployed to pull request November 16, 2023 03:56 Inactive
@github-actions github-actions bot temporarily deployed to pull request November 16, 2023 14:16 Inactive
@github-actions github-actions bot temporarily deployed to pull request November 16, 2023 14:16 Inactive
@gumaerc gumaerc force-pushed the cg/playwright-external-site branch from 32b9ef3 to 1d69dec Compare November 16, 2023 15:02
@github-actions github-actions bot temporarily deployed to pull request November 16, 2023 15:04 Inactive
…s at the root, and use the href property for the URL
@gumaerc gumaerc force-pushed the cg/playwright-external-site branch from f048d58 to 0e919be Compare December 14, 2023 20:59
@github-actions github-actions bot temporarily deployed to pull request December 14, 2023 21:04 Inactive
@github-actions github-actions bot temporarily deployed to pull request December 14, 2023 21:04 Inactive
@gumaerc gumaerc merged commit 49242ac into main Dec 14, 2023
5 checks passed
@odlbot odlbot mentioned this pull request Dec 19, 2023
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

cannot run Playwright tests against an externally hosted site
3 participants