mirror of
https://github.com/langgenius/dify.git
synced 2026-08-15 04:59:46 +08:00
8 lines
266 B
TypeScript
8 lines
266 B
TypeScript
import { expect } from 'vite-plus/test'
|
|
|
|
export const expectLoadingButton = (button: Element | null) => {
|
|
expect(button).toBeInstanceOf(HTMLButtonElement)
|
|
expect(button).toHaveAttribute('aria-disabled', 'true')
|
|
expect(button).not.toHaveAttribute('disabled')
|
|
}
|