mirror of
https://github.com/langgenius/dify.git
synced 2026-07-14 08:57:02 +08:00
8 lines
258 B
TypeScript
8 lines
258 B
TypeScript
import { expect } from 'vitest'
|
|
|
|
export const expectLoadingButton = (button: Element | null) => {
|
|
expect(button).toBeInstanceOf(HTMLButtonElement)
|
|
expect(button).toHaveAttribute('aria-disabled', 'true')
|
|
expect(button).not.toHaveAttribute('disabled')
|
|
}
|