-
Notifications
You must be signed in to change notification settings - Fork 923
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into siteLocaleData
- Loading branch information
Showing
49 changed files
with
865 additions
and
1,745 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import { defineConfig, devices } from '@playwright/test' | ||
import { BASE, BUNDLER, isCI, isDev } from './utils/env' | ||
|
||
const commandPart1 = isDev ? 'docs:dev' : 'docs:build' | ||
const commandPart2 = BUNDLER === 'vite' ? '' : `-${BUNDLER}` | ||
const commandPart3 = isDev ? '' : ' && pnpm docs:serve' | ||
|
||
export default defineConfig({ | ||
testDir: 'tests', | ||
forbidOnly: isCI, | ||
reporter: isCI ? 'github' : 'line', | ||
retries: isCI ? 2 : 0, | ||
workers: isDev ? 1 : undefined, | ||
projects: [ | ||
{ | ||
name: 'chromium', | ||
use: { ...devices['Desktop Chrome'] }, | ||
}, | ||
], | ||
use: { | ||
baseURL: `http://127.0.0.1:9080${BASE}`, | ||
trace: 'on-first-retry', | ||
}, | ||
webServer: { | ||
command: `pnpm docs:clean && pnpm ${commandPart1}${commandPart2}${commandPart3}`, | ||
url: 'http://127.0.0.1:9080', | ||
reuseExistingServer: !isCI, | ||
}, | ||
}) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { expect, test } from '@playwright/test' | ||
|
||
test('should render root components correctly', async ({ page }) => { | ||
await page.goto('', { waitUntil: 'domcontentloaded' }) | ||
|
||
await expect(page.locator('.root-component-from-theme p')).toHaveText( | ||
'root component from theme', | ||
) | ||
await expect(page.locator('.root-component-from-user-config p')).toHaveText( | ||
'root component from user config', | ||
) | ||
}) |
Oops, something went wrong.