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

Change Playwright configuration to have test domain as an environment variable #825

Merged
merged 24 commits into from
Mar 28, 2025

Conversation

JCantu248
Copy link
Collaborator

🗣 Description

In the Playwright configuration, change the baseURL value to be assigned via environment variable. This will help facilitate easier times reconfiguring Playwright for local testing outside of Docker.

💭 Motivation and context

This is needed for better security and easier modifications if we want to run the same Playwright project locally for testing.

🧪 Testing

Tested by rerunning Playwright in Docker with the applied changes.

✅ Pre-approval checklist

  • This PR has an informative and human-readable title.
  • Changes are limited to a single goal - eschew scope creep!
  • All future TODOs are captured in issues, which are referenced
    in code comments.
  • All relevant type-of-change labels have been added.
  • I have read the CONTRIBUTING document.
  • These code changes follow cisagov code standards.
  • All relevant repo and/or project documentation has been updated
    to reflect the changes in this PR.
  • Tests have been added and/or modified to cover the changes in this PR.
  • All new and existing tests pass.

@JCantu248 JCantu248 added test This issue or pull request adds or otherwise modifies test code frontend labels Mar 22, 2025
@JCantu248 JCantu248 self-assigned this Mar 22, 2025
@JCantu248 JCantu248 marked this pull request as ready for review March 24, 2025 14:14
Copy link
Collaborator

@cduhn17 cduhn17 left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Collaborator

@chrtorres chrtorres left a comment

Choose a reason for hiding this comment

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

LGTM

@JCantu248 JCantu248 merged commit 1092d77 into develop Mar 28, 2025
10 checks passed
@JCantu248 JCantu248 deleted the Playwright_local_testing_changes branch March 28, 2025 17:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
frontend test This issue or pull request adds or otherwise modifies test code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants