mirror of
https://github.com/kremalicious/blog.git
synced 2024-11-22 18:00:06 +01:00
Matthias Kretschmann
05ad0470c2
* migrate to biome * cleanup * fix * use tsx * script tweaks * fix test runs * path tweaks
17 lines
459 B
TypeScript
17 lines
459 B
TypeScript
import { expect, test } from '@playwright/test'
|
|
|
|
test.beforeEach(async ({ page }) => {
|
|
await page.goto('/thanks/')
|
|
})
|
|
|
|
test('meta is correct', async ({ page }) => {
|
|
await expect(page).toHaveTitle(/Thanks/)
|
|
})
|
|
|
|
test('rainbowkit modal works', async ({ page }) => {
|
|
// open and close modal
|
|
await expect(page.getByTestId('rk-connect-button')).toBeVisible()
|
|
await page.getByTestId('rk-connect-button').click()
|
|
await page.getByLabel('Close').click()
|
|
})
|