-
Notifications
You must be signed in to change notification settings - Fork 1.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
Fix #4599 - PR Checker build failing #4600
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,7 +37,7 @@ describe('Rating.vue', () => { | |
it('When star is clicked, onOptionClick method should triggered', async () => { | ||
await wrapper.find('.p-rating-item').trigger('click'); | ||
|
||
expect(wrapper.find('.p-focus').exists()).toBe(true); | ||
expect(wrapper.find('[data-p-focused="true"]').exists()).toBe(true); | ||
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.
|
||
}); | ||
|
||
it('When input focused, focusedOptionIndex value should changed', async () => { | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -80,7 +80,10 @@ export default { | |
}, | ||
methods: { | ||
onDropdownButtonClick(event) { | ||
event.preventDefault(); | ||
if (event) { | ||
event.preventDefault(); | ||
} | ||
Comment on lines
+83
to
+85
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. Test was failing with event undefined due to the call on line 92. |
||
|
||
this.$refs.menu.toggle({ currentTarget: this.$el, relatedTarget: this.$refs.button.$el }); | ||
this.isExpanded = this.$refs.menu.visible; | ||
}, | ||
|
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.
Still investigating this. I think it's just a ripple config change?
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.
Investigated,
ripple
is disabled in the default configs which the tests are using so this is a correct assert.