-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
@mertsincan I stole your comment from #4512 and included it in the main vitest config. |
if (event) { | ||
event.preventDefault(); | ||
} |
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.
Test was failing with event undefined due to the call on line 92.
@@ -79,6 +79,6 @@ describe('Button.vue', () => { | |||
} | |||
}); | |||
|
|||
expect(wrapper.html()).toBe(`<button class="p-button p-component" type="button" data-pc-name="button" data-pc-section="root" data-pd-ripple="true"><span class="ml-2 font-bold">Default PrimeVue Button</span></button>`); | |||
expect(wrapper.html()).toBe(`<button class="p-button p-component" type="button" data-pc-name="button" data-pc-section="root"><span class="ml-2 font-bold">Default PrimeVue Button</span></button>`); |
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.
@@ -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 comment
The reason will be displayed to describe this comment to others. Learn more.
p-focus
is not added on click, just keyboard nav, so looking for the data attribute instead.
Fix #4599 - PR Checker build failing
Creating as a draft to test the workflows