-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: added e2e test for title visibility in editor
- Loading branch information
1 parent
68f271a
commit 3ed89db
Showing
1 changed file
with
19 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { test, expect } from '@playwright/test'; | ||
|
||
test.describe('Page Neve Options / Title Visibility', () => { | ||
test('Starter Sites Plugin install from Dashboard Notice', async ({ | ||
page, | ||
}) => { | ||
await page.goto('wp-admin/post-new.php?post_type=page'); | ||
|
||
await page.getByRole('textbox', { name: 'Add title' }).click(); | ||
await page | ||
.getByRole('textbox', { name: 'Add title' }) | ||
.fill('Test Title Visibility'); | ||
await page.getByRole('button', { name: 'Neve Options' }).click(); | ||
const titleLocator = page.locator('h1.editor-post-title'); | ||
await expect(titleLocator).toHaveCSS('opacity', '1'); | ||
await page.getByLabel('Disable Title').check(); | ||
await expect(titleLocator).toHaveCSS('opacity', '0.5'); | ||
}); | ||
}); |