mirror of
https://github.com/langgenius/dify.git
synced 2026-06-12 19:53:38 +08:00
9 lines
312 B
TypeScript
9 lines
312 B
TypeScript
import { expect } from 'vitest'
|
|
|
|
export const expectLoadingButton = (button: Element | null) => {
|
|
expect(button).toBeInstanceOf(HTMLButtonElement)
|
|
expect(button).toHaveAttribute('aria-busy', 'true')
|
|
expect(button).toHaveAttribute('aria-disabled', 'true')
|
|
expect(button).not.toHaveAttribute('disabled')
|
|
}
|