Skip to content

Add integration test for the sort dropdown preserving its selection after a page refresh #635

Description

@Chucks1093

Summary

The active sort option is persisted in the URL query string so the page is shareable. An integration test should confirm that loading the page with a sort param pre-set in the URL initialises the dropdown to the correct selection and fetches with that sort param immediately.

Scope

  • Load the creator discovery page with ?sort=price in the URL
  • Assert the sort dropdown displays Price as the selected option
  • Assert the initial API request includes sort=price
  • Assert the list renders results matching the price-sorted API response

Acceptance Criteria

  • Dropdown initialised to the correct option from the URL param
  • Initial API fetch uses the sort param from the URL
  • List renders results consistent with the selected sort
  • Dropdown shows default option when no sort param is in the URL

ETA: 12 hours


Coordinate on Telegram

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions