test: update playwright script and fix jsdom alert mock
This commit is contained in:
@@ -86,6 +86,10 @@ describe('PageHeader Component', () => {
|
||||
// =============================================================================
|
||||
|
||||
describe('Form Validation Consistency', () => {
|
||||
beforeEach(() => {
|
||||
vi.spyOn(window, 'alert').mockImplementation(() => {})
|
||||
})
|
||||
|
||||
it('validates required fields', async () => {
|
||||
const user = userEvent.setup()
|
||||
const handleSubmit = vi.fn()
|
||||
|
||||
Reference in New Issue
Block a user