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

SFR-2416: Run e2e tests on local domain #569

Merged
merged 10 commits into from
Jan 6, 2025

Conversation

jackiequach
Copy link
Collaborator

@jackiequach jackiequach commented Dec 18, 2024

Jira Ticket

This PR does the following:

  • Updates GH action to run e2e tests on local.nypl.org for PRs not merging production.
  • e2e tests will run on drb-qa.nypl.org for production PRs.
  • Re-enables the e2e test for login

Testing requirements & instructions:

Copy link

vercel bot commented Dec 18, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
sfr-bookfinder-front-end ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 31, 2024 4:13pm

@jackiequach jackiequach changed the title SFR-2416: Run e2e tests on Vercel deploy SFR-2416: Run e2e tests on local domain Dec 19, 2024
@jackiequach jackiequach marked this pull request as ready for review December 19, 2024 18:50
@@ -14,7 +14,7 @@ test.beforeEach(async ({ context }) => {
test.afterEach(() => server.resetHandlers());
test.afterAll(() => server.close());

test.describe("Cookie authentication", () => {
test.skip("Cookie authentication", () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

does this test still not pass? should we skip?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The tests didn't pass due to a double redirect for the login.nypl.org page. I updated the tests to check for the final destination.

@@ -15,6 +15,19 @@ jobs:
with:
node-version-file: ".nvmrc"

- name: Set environment for branch
run: |
if [[ $GITHUB_REF_NAME == 'production' ]]; then
Copy link
Contributor

Choose a reason for hiding this comment

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

should this be [[ $GITHUB_REF_NAME == 'development' ]]?

Copy link
Contributor

Choose a reason for hiding this comment

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

since we talked about getting rid of the produciton/development branches and just using main for full CI/CD i'm wondering if this makes sense to use as a check. is there another check we could use?

Copy link
Contributor

Choose a reason for hiding this comment

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

definitely agree we should change the branch structure eventually.

@jackiequach - just double checking on the logic here. Should we use drb-qa.nypl.org for production github ref?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

These should run when there's a PR merging into the production branch, so before release.

@jackiequach jackiequach merged commit 4135086 into development Jan 6, 2025
8 checks passed
@jackiequach jackiequach deleted the SFR-2416/run-pw-on-vercel branch January 6, 2025 19:13
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.

3 participants