mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-23 22:11:09 +03:00
Fixed missing awaits in publishing Playwright test
no issue
This commit is contained in:
parent
54b27f7d55
commit
f6e463ea43
@ -515,14 +515,14 @@ test.describe('Updating post access', () => {
|
||||
await setPostVisibility(page, 'tiers');
|
||||
|
||||
// backspace removes existing tiers
|
||||
expect(page.locator('[data-test-visibility-segment-select] [data-test-selected-token]')).toHaveCount(3);
|
||||
await expect(page.locator('[data-test-visibility-segment-select] [data-test-selected-token]')).toHaveCount(3);
|
||||
await page.locator('[data-test-visibility-segment-select] input').click();
|
||||
await page.keyboard.press('Backspace');
|
||||
await page.waitForTimeout(50);
|
||||
await page.keyboard.press('Backspace');
|
||||
await page.waitForTimeout(50);
|
||||
await page.keyboard.press('Backspace');
|
||||
expect(page.locator('[data-test-visibility-segment-select] [data-test-selected-token]')).toHaveCount(0);
|
||||
await expect(page.locator('[data-test-visibility-segment-select] [data-test-selected-token]')).toHaveCount(0);
|
||||
|
||||
// specific tier can be added back on
|
||||
await page.keyboard.type('Go');
|
||||
|
Loading…
Reference in New Issue
Block a user