File tree Expand file tree Collapse file tree 2 files changed +19
-6
lines changed Expand file tree Collapse file tree 2 files changed +19
-6
lines changed Original file line number Diff line number Diff line change
1
+ import { expect , test } from '@playwright/test'
2
+ import { setup } from '../../utils'
3
+
4
+ setup ( 'theme-yun' )
5
+
6
+ test . describe ( 'Markdown: Custom Container' , ( ) => {
7
+ test ( 'Custom Title' , async ( { page } ) => {
8
+ await page . goto ( '/test/custom-blocks' )
9
+ await page . waitForSelector ( '.custom-block-title' )
10
+
11
+ const customDangerTitle = await page . locator ( '.custom-block-title' ) . nth ( 5 ) . textContent ( )
12
+ expect ( customDangerTitle ) . toContain ( '自定义标题' )
13
+
14
+ // 第二个 details summary 为自定义标题
15
+ const customDetailsSummary = await page . locator ( 'details summary' ) . nth ( 1 ) . textContent ( )
16
+ expect ( customDetailsSummary ) . toContain ( '自定义标题' )
17
+ } )
18
+ } )
Original file line number Diff line number Diff line change 1
1
import { expect , test } from '@playwright/test'
2
- import { env } from '../../env'
3
2
import { setup } from '../../utils'
4
3
5
- test . use ( {
6
- baseURL : env [ 'theme-yun' ] ,
7
- } )
8
-
9
- setup ( )
4
+ setup ( 'theme-yun' )
10
5
11
6
test . describe ( 'Markdown File Inclusion by @include' , ( ) => {
12
7
test ( 'test/markdown-file-inclusion' , async ( { page } ) => {
You can’t perform that action at this time.
0 commit comments