mirror of
https://github.com/kremalicious/blog.git
synced 2024-12-23 01:30:01 +01:00
17 lines
459 B
TypeScript
17 lines
459 B
TypeScript
import { test, expect } 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()
|
|
})
|