-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[App Search] Updated copy for Precision Slider step descriptions #103684
[App Search] Updated copy for Precision Slider step descriptions #103684
Conversation
@@ -59,11 +60,14 @@ describe('PrecisionSlider', () => { | |||
|
|||
describe('Step Description', () => { | |||
it('is visible when there is a step description', () => { | |||
setMockValues({ ...MOCK_VALUES, precision: 10 }); |
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.
setting precision
instead of searchSettings.precision
meant that this setMockValues
wasn't actually doing anything and searchSettings.precision
remained at the value 2
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.
Nice catch!
rerender(wrapper); | ||
|
||
expect(wrapper.find('[data-test-subj="StepDescription"]').render().text()).toEqual( | ||
'Default. High recall, low precision.' |
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.
Luckily(????) I had used the default text (step 2) instead of the description text for step 10 here.
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.
Changes LGTM
Thanks @constancecchen I've enabled auto-merge! |
💚 Build Succeeded
Metrics [docs]Async chunks
To update your PR or re-run it, just comment with: |
💔 Backport failed
To backport manually run: |
… | [App Search] Updated copy for Precision Slider step descriptions (#103684) (#103767) * [App Search] New Precision Slider for Relevance Tuning (#103015) * Precision is now a required param for search settings * Made RelevanceTuningLogic aware of precision param * New PrecisionSlider component * Add PrecisionSlider to RelevanceTuning * Fix types in test * Fix imports for PrecisionSlider * Slight panel and text adjustments. * Comment out docs link * Add commented out test for docs * Can we just all agree not to talk about this commit * Restore docs link * Fix docs link again * Clean-up step description logic * Test for documentation link * Moving the spacer to align titles. * Missing test for updatePrecision * Fix CSS for step description * Remove containing EuiPanel * Improve screen reader experience Co-authored-by: Davey Holler <[email protected]> * [App Search] Updated copy for Precision Slider step descriptions (#103684) * Update precision slider description copy * Fixed a broken (but passing) test Co-authored-by: Byron Hulcher <[email protected]> Co-authored-by: Davey Holler <[email protected]>
Summary
Updates copy based on external discussions. Also fixes a test which was broken but managed to pass because of the specific
expect()
I wrote. Please reference the issue linked below for the expected copy changes.Checklist
Delete any items that are not applicable to this PR.