Skip to content

Conversation

@labkey-tchad
Copy link
Member

Rationale

The link this test is checking doesn't encode a ~. Need to adjust the expected href to account for this.
Also, fixing some invalid Locators that are used for validation here.

Related Pull Requests

Changes

  • Handle unusual query encoding in href
  • Fix invalid Locators

Maps.of("datasetId", 5018,
"Dataset.ParticipantId~in", PTID_NO_ALIAS + ";" + PTID_NEW_2));
Maps.of("datasetId", 5018, "Dataset.ParticipantId~in", PTID_NO_ALIAS + ";" + PTID_NEW_2))
.replace("%7E", "~"); // '~' isn't encoded in href
Copy link
Contributor

Choose a reason for hiding this comment

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

is this substitution generalizable for other use cases? Asking to prompt the question whether this should be done in a helper vs. in test code

Copy link
Member Author

Choose a reason for hiding this comment

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

I wouldn't count on it. There are a lot of "valid" encodings and I doubt we're consistent on the product side. We should probably avoid finding elements by href attribute like this. It would be preferable to grab the link by some other means and decode it.

@labkey-tchad labkey-tchad merged commit c9009fc into develop Dec 9, 2024
10 of 11 checks passed
@labkey-tchad labkey-tchad deleted the fb_decodingParameters branch December 9, 2024 20:32
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