mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-09-06 13:10:39 +02:00
* empty * empty * empty * Begin move from cypress to playwright. * Switch remaining tests to playwright, remove old cypress suppport files. * Clean up playwright config * Enable ff, and safari when on mac. * Fix safari/ff mentions test * Fix code-highlighting test on ff/safari * Add a local retry as a few tests are flaky. * Replace cypress w/ playwright in gitignore. * Update to latest yarn to fix ci install? * Update yarn.lock w/ yarn command. * Fix mocha tests. * Fix prettier
17 lines
370 B
TypeScript
17 lines
370 B
TypeScript
import { test, expect } from '@playwright/test'
|
|
|
|
test.describe('table example', () => {
|
|
test.beforeEach(async ({ page }) => {
|
|
await page.goto('http://localhost:3000/examples/tables')
|
|
})
|
|
|
|
test('table tag rendered', async ({ page }) => {
|
|
expect(
|
|
await page
|
|
.getByRole('textbox')
|
|
.locator('table')
|
|
.count()
|
|
).toBe(1)
|
|
})
|
|
})
|