-
Notifications
You must be signed in to change notification settings - Fork 27
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
history: default to an empty query when 'all' is selected #1472
history: default to an empty query when 'all' is selected #1472
Conversation
✅ Deploy Preview for content-scope-scripts ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
This stack of pull requests is managed by Graphite. Learn more about stacking. |
Temporary Branch UpdateThe temporary branch has been updated with the latest changes. Below are the details:
Please use the above install command to update to the latest version. |
[Beta] Generated file diffTime updated: Mon, 10 Feb 2025 10:43:28 GMT Integration
File has changed Windows
File has changed Apple
File has changed |
test('selecting `all` resets to an empty query', async ({ page }, workerInfo) => { | ||
const hp = HistoryTestPage.create(page, workerInfo).withEntries(300); | ||
await hp.openPage({}); | ||
|
||
// start with a fresh range query | ||
await hp.selectsRange('today'); | ||
await hp.selectsToday(); | ||
await hp.didMakeNthQuery({ nth: 1, query: { range: 'today' } }); | ||
|
||
// click 'all' (to reset) | ||
await hp.selectsRange('all'); | ||
await hp.selectsAll(); | ||
|
||
// ensure it's a full reset | ||
await hp.didMakeNthQuery({ nth: 2, query: { term: '' } }); |
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.
This test was skipped before, but is now passing :)
Asana Task/Github Issue: https://app.asana.com/0/1201141132935289/1209364150538084
Description
Testing Steps
Checklist
Please tick all that apply: