Skip to content

Commit

Permalink
Quick edit less flaky
Browse files Browse the repository at this point in the history
  • Loading branch information
joepio committed Nov 28, 2023
1 parent 39f0752 commit 19fc035
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions browser/e2e/tests/e2e.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -280,19 +280,13 @@ test.describe('data-browser', async () => {

const alphabet = 'abcdefghijklmnopqrstuvwxyz';

const waiter = waitForCommitOnCurrentResource(page, {
set: {
['https://atomicdata.dev/properties/name']: alphabet,
},
});

for (const letter of alphabet) {
await page.type(editableTitle, letter, { delay: Math.random() * 300 });
}

// wait for commit debounce
// make sure no commits are waiting for each other
await waiter;
await page.waitForTimeout(1000);

await page.keyboard.press('Escape');

Expand Down

0 comments on commit 19fc035

Please sign in to comment.