This repository has been archived by the owner on Jul 2, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 25
DEVPROD-3049: Remove LeafyGreen column utils #2181
Merged
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
ac79cde
Remove LG column functions
sophstad 038cc13
Merge branch 'main' of https://github.com/evergreen-ci/spruce into DE…
sophstad dd3e954
Fix tests
sophstad 37d580c
Merge branch 'main' of https://github.com/evergreen-ci/spruce into DE…
sophstad 628041b
Update filter handling
sophstad 3296eab
Update hosts table
sophstad dff9f06
Merge branch 'main' of https://github.com/evergreen-ci/spruce into DE…
sophstad 924b2ef
Oops -- should use manualFiltering and manualSorting
sophstad b061129
Merge branch 'main' of https://github.com/evergreen-ci/spruce into DE…
sophstad d8bc093
Remove dupe field
sophstad 44327aa
Fix hosts table sorting
sophstad 2c7466e
Use onChange handlers not useEffect
sophstad 146c677
Merge branch 'main' of https://github.com/evergreen-ci/spruce into DE…
sophstad 59c1abd
Fix dupe key error... again?
sophstad 599a50a
Merge branch 'main' of https://github.com/evergreen-ci/spruce into DE…
sophstad File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,7 +31,7 @@ describe("Task Duration Tab", () => { | |
cy.dataCy("leafygreen-table-row").should("have.length", 3); | ||
cy.location("search").should( | ||
"include", | ||
"duration=DESC&page=0&statuses=running-umbrella,started,dispatched" | ||
"duration=DESC&page=0&statuses=running-umbrella%2Cstarted%2Cdispatched" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This indicates to me that the query params aren't being properly uriencoded or that we are double encoding them. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Well isn't the URL now being encoded, and it wasn't before? |
||
); | ||
// Clear status filter. | ||
cy.dataCy("status-filter-popover").click(); | ||
|
@@ -61,24 +61,26 @@ describe("Task Duration Tab", () => { | |
}); | ||
|
||
it("updates URL appropriately when sort is changing", () => { | ||
const durationSortControl = "button[aria-label='Sort by Task Duration']"; | ||
// The default sort (DURATION DESC) should be applied | ||
cy.location("search").should("include", "duration=DESC"); | ||
const longestTask = "test-thirdparty"; | ||
cy.contains(longestTask).should("be.visible"); | ||
cy.dataCy("leafygreen-table-row").first().should("contain", longestTask); | ||
cy.dataCy("duration-sort-icon").click(); | ||
cy.get(durationSortControl).click(); | ||
cy.location("search").should("not.include", "duration"); | ||
cy.dataCy("duration-sort-icon").click(); | ||
cy.get(durationSortControl).click(); | ||
cy.location("search").should("include", "duration=ASC"); | ||
const shortestTask = "test-auth"; | ||
cy.contains(shortestTask).should("be.visible"); | ||
cy.dataCy("leafygreen-table-row").first().should("contain", shortestTask); | ||
}); | ||
|
||
it("clearing all filters resets to the default sort", () => { | ||
cy.dataCy("duration-sort-icon").click(); | ||
const durationSortControl = "button[aria-label='Sort by Task Duration']"; | ||
cy.get(durationSortControl).click(); | ||
cy.location("search").should("not.include", "duration"); | ||
cy.dataCy("duration-sort-icon").click(); | ||
cy.get(durationSortControl).click(); | ||
cy.location("search").should("include", "duration=ASC"); | ||
cy.contains("Clear all filters").click(); | ||
cy.location("search").should("include", "duration=DESC"); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!