-
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.
Merge pull request #4041 from Codeinwp/feat/visual_cue_editor_title
feat: show visual cue for disabled title inside editor
- Loading branch information
Showing
3 changed files
with
73 additions
and
12 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
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'); | ||
}); | ||
}); |
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