Another attempt to fix update-published-post test in CI

refs https://github.com/TryGhost/Team/issues/2371

- the 100ms timeout was enough for local tests to pass but was still failing on CI
- bumped to 200ms and skipped the creation of a new paragraph to reduce what the editor is doing
This commit is contained in:
Kevin Ansfield 2022-12-08 09:59:20 +00:00
parent 8ddf1f0215
commit 7371addbc5

View File

@ -166,9 +166,8 @@ test.describe('Publishing', () => {
// add some extra text to the post // add some extra text to the post
await adminPage.locator('[data-kg="editor"]').click(); await adminPage.locator('[data-kg="editor"]').click();
await adminPage.waitForTimeout(100); await adminPage.waitForTimeout(200); //
await adminPage.keyboard.press('Enter'); await adminPage.keyboard.type(' This is some updated text.');
await adminPage.keyboard.type('This is some updated text.');
// change some post settings // change some post settings
await adminPage.locator('[data-test-psm-trigger]').click(); await adminPage.locator('[data-test-psm-trigger]').click();