Skip to content

Commit

Permalink
Remove a bunch of timeouts that are not needed any more
Browse files Browse the repository at this point in the history
  • Loading branch information
bosschaert committed May 29, 2024
1 parent e292e45 commit a8fdbfc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
11 changes: 2 additions & 9 deletions test/e2e/tests/edit.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,12 @@ test('Update Document', async ({ browser, page }, workerInfo) => {

const url = getTestPageURL('edit1', workerInfo);
await page.goto(url);
await page.waitForTimeout(3000);
await expect(page.locator('div.ProseMirror')).toBeVisible();
await page.waitForTimeout(1000);

const enteredText = `[${workerInfo.project.name}] Edited by test ${new Date()}`;
await page.locator('div.ProseMirror').fill(enteredText);

await page.waitForTimeout(3000);
await page.waitForTimeout(1000);
await page.close();

const newPage = await browser.newPage();
Expand All @@ -46,10 +44,9 @@ test('Create Delete Document', async ({ browser, page }, workerInfo) => {
await page.locator('input.da-actions-input').fill(pageName);

await page.locator('button:text("Create document")').click();
await page.waitForTimeout(3000);
await expect(page.locator('div.ProseMirror')).toBeVisible();
await page.waitForTimeout(1000);
await page.locator('div.ProseMirror').fill('testcontent');
await page.waitForTimeout(1000);

const newPage = await browser.newPage();
await newPage.goto(`${ENV}/#/da-sites/da-status/tests`);
Expand Down Expand Up @@ -79,9 +76,7 @@ test('Change document by switching anchors', async ({ page }, workerInfo) => {
const urlB = `${url}B`;

await page.goto(urlA);
await page.waitForTimeout(3000);
await expect(page.locator('div.ProseMirror')).toBeVisible();
await page.waitForTimeout(1000);

await page.locator('div.ProseMirror').fill('before table');
await page.getByText('Block', { exact: true }).click();
Expand All @@ -100,9 +95,7 @@ test('Change document by switching anchors', async ({ page }, workerInfo) => {
await page.waitForTimeout(1000);

await page.goto(urlB);
await page.waitForTimeout(3000);
await expect(page.locator('div.ProseMirror')).toBeVisible();
await page.waitForTimeout(1000);

await page.locator('div.ProseMirror').fill('page B');
await page.waitForTimeout(1000);
Expand Down
2 changes: 0 additions & 2 deletions test/e2e/tests/versions.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@ test('Create Version and Restore from it', async ({ page }, workerInfo) => {
test.setTimeout(30000);

await page.goto(getTestPageURL('versions', workerInfo));
await page.waitForTimeout(3000);
await expect(page.locator('div.ProseMirror')).toBeVisible();
await page.waitForTimeout(1000);

// Enter some initial text onto the page
await page.locator('div.ProseMirror').fill('Initial version');
Expand Down

0 comments on commit a8fdbfc

Please sign in to comment.