Skip to content

Commit

Permalink
Keep e2e test only on firefox :(
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasTy committed Dec 19, 2023
1 parent 778e3c1 commit 880f0e7
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions test/e2e/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,6 @@ async function initializeEnvironment(
context = await browser.newContext({
// ensure consistent date formatting regardless of environment
locale: 'en-US',
permissions: [
...(browserType.name() !== 'firefox' ? ['clipboard-read'] : []),
...(browserType.name() === 'chromium' ? ['clipboard-write'] : []),
],
...contextOptions,
});
// Circle CI has low-performance CPUs.
Expand Down Expand Up @@ -558,8 +554,8 @@ async function initializeEnvironment(
});

it('should allow pasting a section', async () => {
// the pasting does not seem to work in chromium headless
if (browserType.name() === 'chromium') {
// Only firefox is capable of reliably running this test in CI and headless browsers
if (browserType.name() !== 'firefox' && process.env.CIRCLECI) {
return;
}
await renderFixture('DatePicker/BasicDesktopDatePicker');
Expand Down

0 comments on commit 880f0e7

Please sign in to comment.