9d895aab13
Fixes #2826, extracted from #2680 The problem is that we had two different articles whose ids were being derived as `persistence`, the `persistence.mdx` file and the `persistence/` example. I've 1. Made it an error for two articles to have the same id 2. Renamed the `persistence/` article to `local-storage` since that's the API it's using. ### Change Type - [ ] `patch` — Bug fix - [ ] `minor` — New feature - [ ] `major` — Breaking change - [ ] `dependencies` — Changes to package dependencies[^1] - [x] `documentation` — Changes to the documentation only[^2] - [ ] `tests` — Changes to any test code only[^2] - [ ] `internal` — Any other changes that don't affect the published package[^2] - [ ] I don't know [^1]: publishes a `patch` release, for devDependencies use `internal` [^2]: will not publish a new version ### Test Plan 1. Add a step-by-step description of how to test your PR here. 3. - [ ] Unit Tests - [ ] End to end tests ### Release Notes - Add a brief release note for your PR here.
78 lines
2.2 KiB
TypeScript
78 lines
2.2 KiB
TypeScript
import test from '@playwright/test'
|
|
|
|
test.describe('Routes', () => {
|
|
test('end-to-end', async ({ page }) => {
|
|
await page.goto('http://localhost:5420/end-to-end')
|
|
await page.waitForSelector('.tl-canvas')
|
|
})
|
|
|
|
test('basic', async ({ page }) => {
|
|
await page.goto('http://localhost:5420/develop')
|
|
await page.waitForSelector('.tl-canvas')
|
|
})
|
|
|
|
test('api', async ({ page }) => {
|
|
await page.goto('http://localhost:5420/api/full')
|
|
await page.waitForSelector('.tl-canvas')
|
|
})
|
|
|
|
test('hide-ui', async ({ page }) => {
|
|
await page.goto('http://localhost:5420/custom-config/full')
|
|
await page.waitForSelector('.tl-canvas')
|
|
})
|
|
|
|
test('custom-config', async ({ page }) => {
|
|
await page.goto('http://localhost:5420/custom-config/full')
|
|
await page.waitForSelector('.tl-canvas')
|
|
})
|
|
|
|
test('custom-ui', async ({ page }) => {
|
|
await page.goto('http://localhost:5420/custom-ui/full')
|
|
await page.waitForSelector('.tl-canvas')
|
|
})
|
|
|
|
test('exploded', async ({ page }) => {
|
|
await page.goto('http://localhost:5420/exploded/full')
|
|
await page.waitForSelector('.tl-canvas')
|
|
})
|
|
|
|
test('scroll', async ({ page }) => {
|
|
await page.goto('http://localhost:5420/scroll/full')
|
|
await page.waitForSelector('.tl-canvas')
|
|
})
|
|
|
|
test('multiple', async ({ page }) => {
|
|
await page.goto('http://localhost:5420/multiple/full')
|
|
await page.waitForSelector('.tl-canvas')
|
|
})
|
|
|
|
test('error-boundary', async ({ page }) => {
|
|
await page.goto('http://localhost:5420/error-boundary/full')
|
|
await page.waitForSelector('.tl-canvas')
|
|
})
|
|
|
|
test('user-presence', async ({ page }) => {
|
|
await page.goto('http://localhost:5420/user-presence/full')
|
|
await page.waitForSelector('.tl-canvas')
|
|
})
|
|
|
|
test('ui-events', async ({ page }) => {
|
|
await page.goto('http://localhost:5420/ui-events/full')
|
|
await page.waitForSelector('.tl-canvas')
|
|
})
|
|
|
|
test('store-events', async ({ page }) => {
|
|
await page.goto('http://localhost:5420/store-events/full')
|
|
await page.waitForSelector('.tl-canvas')
|
|
})
|
|
|
|
test('persistence', async ({ page }) => {
|
|
await page.goto('http://localhost:5420/local-storage/full')
|
|
await page.waitForSelector('.tl-canvas')
|
|
})
|
|
|
|
test('snapshots', async ({ page }) => {
|
|
await page.goto('http://localhost:5420/snapshots/full')
|
|
await page.waitForSelector('.tl-canvas')
|
|
})
|
|
})
|