diff --git a/e2e/respects_permissions.spec.ts b/e2e/respects_permissions.spec.ts index 5f55e43..6552d4c 100644 --- a/e2e/respects_permissions.spec.ts +++ b/e2e/respects_permissions.spec.ts @@ -47,8 +47,10 @@ test.describe('Respects Permissions', () => { await page.click('[data-test-id="input-editor"]'); await page.waitForTimeout(200); await page.keyboard.type(' 4 5 6'); - await expect(page.getByText('1 2 3 4 5 6')).toBeVisible(); - await expect(page2.getByText('1 2 3 4 5 6')).toBeVisible(); + // test only 4 5 6 here because sometimes the cursor is in between the 3 and the 4 + // and the cursor in codemirror has some text :// + await expect(page.getByText('4 5 6')).toBeVisible(); + await expect(page2.getByText('4 5 6')).toBeVisible(); // test scribble await page2.click('text=scribble');