(page: Page, outputCount = 1)
| 72 | } |
| 73 | |
| 74 | export async function waitForAllGenerationHooks(page: Page, outputCount = 1) { |
| 75 | const cards = page.getByTestId('generation-hook-card') |
| 76 | await expect(cards).toHaveCount(6) |
| 77 | for (let index = 0; index < 6; index++) { |
| 78 | await expect( |
| 79 | cards.nth(index).getByTestId('generation-hook-status'), |
| 80 | ).toHaveText('success') |
| 81 | await expect |
| 82 | .poll(async () => |
| 83 | Number( |
| 84 | await cards |
| 85 | .nth(index) |
| 86 | .getByTestId('generation-hook-output-count') |
| 87 | .innerText(), |
| 88 | ), |
| 89 | ) |
| 90 | .toBeGreaterThanOrEqual(outputCount) |
| 91 | } |
| 92 | } |
| 93 | |
| 94 | export async function expectClassChangesOnHover( |
| 95 | hoverSource: Locator, |
no outgoing calls
no test coverage detected