Skip to content

Commit

Permalink
test: update test case
Browse files Browse the repository at this point in the history
  • Loading branch information
pmelab committed Sep 13, 2023
1 parent 0e438a9 commit ecfa509
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/e2e/specs/blocks.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ test('All blocks are rendered', async ({ page }) => {

// Hero
await expect(
page.locator(
'img[data-test-id=hero-image][alt="A beautiful landscape."][src*="/landscape.jpg"]',
),
page.locator('img[data-test-id=hero-image][alt="A beautiful landscape."]'),
).toHaveCount(1);
await expect(
page.locator('h1:text("All kinds of blocks with maximum data")'),
Expand All @@ -27,7 +25,7 @@ test('All blocks are rendered', async ({ page }) => {
// Image
await expect(
page.locator(
'img:not([data-test-id=hero-image])[alt="A beautiful landscape."][src*="/landscape.jpg"]',
'img:not([data-test-id=hero-image])[alt="A beautiful landscape."]',
),
).toHaveCount(1);
await expect(page.locator('figcaption:text("Media image")')).toHaveCount(1);
Expand Down

0 comments on commit ecfa509

Please sign in to comment.