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

fix: file name in test #1280

Merged
merged 1 commit into from
May 23, 2023
Merged

fix: file name in test #1280

merged 1 commit into from
May 23, 2023

Conversation

alexanderleegs
Copy link
Contributor

Problem

This PR fixes our files test spec - it currently works on its own but not after being run sequentially with edit page, due to the partial match of the file being uploaded in the editpage spec (singapore-pages in editpage, singapore in files). The file being searched for in files has been changed to singapore-file in order to avoid this overlap.

@alexanderleegs alexanderleegs temporarily deployed to staging May 19, 2023 08:36 — with GitHub Actions Inactive
@@ -2,7 +2,7 @@ import "cypress-file-upload"
import { Interceptors, TEST_REPO_NAME } from "../fixtures/constants"

describe("Files", () => {
const FILE_TITLE = "singapore"
const FILE_TITLE = "singapore-file"
Copy link
Contributor

Choose a reason for hiding this comment

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

seems liek the same file might be reused across editPage and files, maybe we should consider having both of the specs refer to the same constant by exporting it from our fixtures file?

this means that a change to filename in editPage might cause a downstream failure still

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We actually want the files referred to be different - the tests were made independently of each other, and the issue is that running them sequentially mistakenly referred to the file created in editPage which had a similar title, but was not meant to be the same file

Copy link
Contributor

Choose a reason for hiding this comment

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

oh ok i see!

@alexanderleegs alexanderleegs temporarily deployed to staging May 19, 2023 08:46 — with GitHub Actions Inactive
@alexanderleegs alexanderleegs temporarily deployed to staging May 19, 2023 08:50 — with GitHub Actions Inactive
@alexanderleegs alexanderleegs requested a review from seaerchin May 19, 2023 09:41
@alexanderleegs alexanderleegs merged commit 11bafa0 into develop May 23, 2023
@mergify mergify bot deleted the fix/files-spec-name-overlap branch May 23, 2023 01:26
@mergify mergify bot requested a review from a team June 22, 2023 01:27
@mergify
Copy link

mergify bot commented Jun 22, 2023

This pull request has been stale for more than 30 days! Could someone please take a look at it @isomerpages/iso-engineers

1 similar comment
@mergify
Copy link

mergify bot commented Jul 22, 2023

This pull request has been stale for more than 30 days! Could someone please take a look at it @isomerpages/iso-engineers

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