Skip to content

Commit 485f15b

Browse files
committed
wip
1 parent 83934d3 commit 485f15b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/e2e/code-snippets-evaluation.spec.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ test.describe('Code Snippets Evaluation', () => {
99
await page.waitForSelector('#wpbody-content, .wrap, #wpcontent', { timeout: 10000 });
1010
});
1111

12-
test('Can hide admin bar with activated snippet', async ({ page }) => {
12+
test('PHP snippet is evaluating correctly', async ({ page }) => {
1313
await page.waitForSelector('h1, .page-title', { timeout: 10000 });
1414
await page.click('.page-title-action');
1515
await page.waitForLoadState('networkidle');
@@ -27,7 +27,7 @@ test.describe('Code Snippets Evaluation', () => {
2727
await page.waitForLoadState('networkidle');
2828

2929
await expect(page.locator('#wpadminbar')).not.toBeVisible();
30-
30+
3131
const adminBarCount = await page.locator('#wpadminbar').count();
3232
expect(adminBarCount).toBe(0);
3333
});
@@ -36,12 +36,12 @@ test.describe('Code Snippets Evaluation', () => {
3636
// Clean up
3737
await page.goto('/wp-admin/admin.php?page=snippets');
3838
await page.waitForLoadState('networkidle');
39-
39+
4040
const snippetExists = await page.locator(`text=${TEST_SNIPPET_NAME}`).count();
4141
if (snippetExists > 0) {
4242
await page.click(`text=${TEST_SNIPPET_NAME}`);
4343
await page.waitForLoadState('networkidle');
44-
44+
4545
await page.click('text=Delete');
4646
await page.click('button.components-button.is-destructive.is-primary');
4747
}

0 commit comments

Comments
 (0)