Skip to content

Commit

Permalink
chore: added e2e test for title visibility in editor
Browse files Browse the repository at this point in the history
  • Loading branch information
preda-bogdan committed Jul 19, 2023
1 parent 68f271a commit 3ed89db
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions e2e-tests/specs/editor/page.spec.ts
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');
});
});

0 comments on commit 3ed89db

Please sign in to comment.