From bac6e92a6e04879f86bb8565180074fef0c3d991 Mon Sep 17 00:00:00 2001 From: Guilherme Rodz Date: Sun, 18 Feb 2024 21:59:58 -0300 Subject: [PATCH] test(skip): skip only `base.selections` test --- test/src/tests/base.delete-word.spec.ts | 2 -- test/src/tests/base.selections.spec.ts | 8 ++++---- test/src/tests/with-allow-navigation.spec.ts | 5 ----- 3 files changed, 4 insertions(+), 11 deletions(-) diff --git a/test/src/tests/base.delete-word.spec.ts b/test/src/tests/base.delete-word.spec.ts index 4b3983a..7d1fa9b 100644 --- a/test/src/tests/base.delete-word.spec.ts +++ b/test/src/tests/base.delete-word.spec.ts @@ -6,8 +6,6 @@ test.beforeEach(async ({ page }) => { }) test.describe('Delete words', () => { - // test.skip(process.env.CI === 'true', 'Breaks in CI as it cannot handle Arrow or Shift keys') - test('should backspace previous word (even if there is not a selected character)', async ({ page }) => { const input = page.getByTestId('otp-input-wrapper').getByRole('textbox') diff --git a/test/src/tests/base.selections.spec.ts b/test/src/tests/base.selections.spec.ts index eb90590..f933077 100644 --- a/test/src/tests/base.selections.spec.ts +++ b/test/src/tests/base.selections.spec.ts @@ -5,10 +5,10 @@ test.beforeEach(async ({ page }) => { }) test.describe('Base tests - Selections', () => { - // test.skip( - // process.env.CI === 'true', - // 'Breaks in CI as it cannot handle Arrow or Shift keys', - // ) + test.skip( + process.env.CI === 'true', + 'Breaks in CI as it cannot handle Shift key', + ) test('should replace selected char if another is pressed', async ({ page, diff --git a/test/src/tests/with-allow-navigation.spec.ts b/test/src/tests/with-allow-navigation.spec.ts index fcd6ba7..38b25f9 100644 --- a/test/src/tests/with-allow-navigation.spec.ts +++ b/test/src/tests/with-allow-navigation.spec.ts @@ -23,11 +23,6 @@ async function copyAndGetClipboardContent(params: { } test.describe('With allow navigation tests', () => { - // test.skip( - // process.env.CI === 'true', - // 'Breaks in CI as it cannot handle Arrow or Shift keys', - // ) - test('should allow navigation to the sides (arrows only)', async ({ page, context,