Skip to content

Commit

Permalink
E2E test: experimental fix for copy from cell (#6490)
Browse files Browse the repository at this point in the history
Seeing a strange failure with this step of the data explorer test.
Attempting to fix by allowing retries.

### QA Notes

Data explorer tests should pass.

@:data-explorer @:web
  • Loading branch information
testlabauto authored Feb 26, 2025
1 parent b74e14e commit f2cea6f
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions test/e2e/tests/data-explorer/data-explorer-headless.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,10 @@ async function verifyPlainTextButtonInActionBar(app: Application, isVisible: boo
}

async function verifyCopyFromCell(app: Application, value: string) {
await app.code.driver.page.locator('#data-grid-row-cell-content-0-0 .text-container .text-value').click();
await app.code.driver.page.keyboard.press(process.platform === 'darwin' ? 'Meta+C' : 'Control+C');
const clipboardText = await app.workbench.clipboard.getClipboardText();
expect(clipboardText).toBe(value);

await expect(async () => {
await app.code.driver.page.locator('#data-grid-row-cell-content-0-0 .text-container .text-value').click();
await app.code.driver.page.keyboard.press(process.platform === 'darwin' ? 'Meta+C' : 'Control+C');
const clipboardText = await app.workbench.clipboard.getClipboardText();
expect(clipboardText).toBe(value);
}).toPass();
}

0 comments on commit f2cea6f

Please sign in to comment.