diff --git a/e2e/ability-detail.spec.ts b/e2e/ability-detail.spec.ts index 47b24a7..177bf14 100644 --- a/e2e/ability-detail.spec.ts +++ b/e2e/ability-detail.spec.ts @@ -11,7 +11,7 @@ test.describe('Ability Detail Page', () => { await expect(page.locator('text=Something went wrong')).not.toBeVisible(); await expect(page.locator('text=overgrow').first()).toBeVisible(); - expect(errors.filter((e) => !e.includes('Warning'))).toHaveLength(0); + expect(errors).toHaveLength(0); }); test('should display ability description', async ({ page }) => { diff --git a/e2e/item-detail.spec.ts b/e2e/item-detail.spec.ts index ebd729b..43ccee6 100644 --- a/e2e/item-detail.spec.ts +++ b/e2e/item-detail.spec.ts @@ -11,7 +11,7 @@ test.describe('Item Detail Page', () => { await expect(page.locator('text=Something went wrong')).not.toBeVisible(); await expect(page.locator('text=potion').first()).toBeVisible(); - expect(errors.filter((e) => !e.includes('Warning'))).toHaveLength(0); + expect(errors).toHaveLength(0); }); test('should display item category', async ({ page }) => { diff --git a/e2e/location-detail.spec.ts b/e2e/location-detail.spec.ts index 74d51af..9e4a6f1 100644 --- a/e2e/location-detail.spec.ts +++ b/e2e/location-detail.spec.ts @@ -11,7 +11,7 @@ test.describe('Location Detail Page', () => { await expect(page.locator('text=Something went wrong')).not.toBeVisible(); await expect(page.locator('text=pallet town').first()).toBeVisible(); - expect(errors.filter((e) => !e.includes('Warning'))).toHaveLength(0); + expect(errors).toHaveLength(0); }); test('should display region information', async ({ page }) => { diff --git a/e2e/move-detail.spec.ts b/e2e/move-detail.spec.ts index 3ea206e..ca3ab92 100644 --- a/e2e/move-detail.spec.ts +++ b/e2e/move-detail.spec.ts @@ -11,7 +11,7 @@ test.describe('Move Detail Page', () => { await expect(page.locator('text=Something went wrong')).not.toBeVisible(); await expect(page.locator('text=tackle').first()).toBeVisible(); - expect(errors.filter((e) => !e.includes('Warning'))).toHaveLength(0); + expect(errors).toHaveLength(0); }); test('should display move type badge', async ({ page }) => { diff --git a/e2e/nature-detail.spec.ts b/e2e/nature-detail.spec.ts index d7c821e..9967a9d 100644 --- a/e2e/nature-detail.spec.ts +++ b/e2e/nature-detail.spec.ts @@ -11,7 +11,7 @@ test.describe('Nature Detail Page', () => { await expect(page.locator('text=Something went wrong')).not.toBeVisible(); await expect(page.locator('text=adamant').first()).toBeVisible(); - expect(errors.filter((e) => !e.includes('Warning'))).toHaveLength(0); + expect(errors).toHaveLength(0); }); test('should display stat changes', async ({ page }) => { diff --git a/e2e/trainer-detail.spec.ts b/e2e/trainer-detail.spec.ts index 8175670..f27dcce 100644 --- a/e2e/trainer-detail.spec.ts +++ b/e2e/trainer-detail.spec.ts @@ -11,7 +11,7 @@ test.describe('Trainer Detail Page', () => { await expect(page.locator('text=Something went wrong')).not.toBeVisible(); await expect(page.locator('text=Brock').first()).toBeVisible(); - expect(errors.filter((e) => !e.includes('Warning'))).toHaveLength(0); + expect(errors).toHaveLength(0); }); test('should display trainer title', async ({ page }) => { diff --git a/e2e/type-detail.spec.ts b/e2e/type-detail.spec.ts index 761cd64..6490f38 100644 --- a/e2e/type-detail.spec.ts +++ b/e2e/type-detail.spec.ts @@ -11,7 +11,7 @@ test.describe('Type Detail Page', () => { await expect(page.locator('text=Something went wrong')).not.toBeVisible(); await expect(page.locator('text=fire').first()).toBeVisible(); - expect(errors.filter((e) => !e.includes('Warning'))).toHaveLength(0); + expect(errors).toHaveLength(0); }); test('should display type matchups', async ({ page }) => {