1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-11-22 09:56:51 +01:00
blog/test/e2e/thanks.spec.ts
2023-10-03 19:18:29 +01:00

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()
})