File tree Expand file tree Collapse file tree 1 file changed +0
-5
lines changed Expand file tree Collapse file tree 1 file changed +0
-5
lines changed Original file line number Diff line number Diff line change @@ -2,23 +2,18 @@ import { test, expect } from '@playwright/test';
2
2
3
3
test . describe ( 'Code Snippets Admin Page @admin' , ( ) => {
4
4
test ( 'should display the Functions tab on the snippets admin page' , async ( { page } ) => {
5
- // First, log in to WordPress
6
5
await page . goto ( '/wp-login.php' ) ;
7
6
await page . fill ( '#user_login' , 'admin' ) ;
8
7
await page . fill ( '#user_pass' , 'password' ) ;
9
8
await page . click ( '#wp-submit' ) ;
10
9
await page . waitForURL ( / w p - a d m i n / ) ;
11
10
12
- // Navigate to the Code Snippets admin page
13
11
await page . goto ( '/wp-admin/admin.php?page=snippets' ) ;
14
12
15
- // Wait for the page to load
16
13
await page . waitForLoadState ( 'networkidle' ) ;
17
14
18
- // Look for the Functions tab - just check if it exists
19
15
const functionsTab = page . locator ( 'text=Functions' ) . first ( ) ;
20
16
21
- // Check that the tab exists and is visible
22
17
await expect ( functionsTab ) . toBeVisible ( ) ;
23
18
} ) ;
24
19
} ) ;
You can’t perform that action at this time.
0 commit comments