Skip to content

Commit

Permalink
chore(SLB-497): prettier fix
Browse files Browse the repository at this point in the history
  • Loading branch information
chindris committed Jan 20, 2025
1 parent 3a79ea8 commit e158b58
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions tests/e2e/specs/drupal/metatags.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ test('Metatags on Basic page', async ({ page }) => {
'SEO test - all empty | Silverback Drupal Template',
);
await expect(page.locator('head meta[name="description"]')).toHaveCount(0);
await expect(page.locator('head meta[property="og:description"]')).toHaveCount(0);
await expect(
page.locator('head meta[property="og:description"]'),
).toHaveCount(0);
await expect(page.locator('head meta[rel="image_src"]')).toHaveCount(0);
await expect(page.locator('head meta[property="og:image"]')).toHaveCount(0);
await expect(page.locator('head link[rel="canonical"]')).toHaveAttribute(
Expand All @@ -42,7 +44,9 @@ test('Metatags on Basic page', async ({ page }) => {
'SEO test - all empty DE | Silverback Drupal Template',
);
await expect(page.locator('head meta[name="description"]')).toHaveCount(0);
await expect(page.locator('head meta[property="og:description"]')).toHaveCount(0);
await expect(
page.locator('head meta[property="og:description"]'),
).toHaveCount(0);
await expect(page.locator('head link[rel="image_src"]')).toHaveCount(0);
await expect(page.locator('head meta[property="og:image"]')).toHaveCount(0);
await expect(page.locator('head link[rel="canonical"]')).toHaveAttribute(
Expand Down Expand Up @@ -70,10 +74,9 @@ test('Metatags on Basic page', async ({ page }) => {
'content',
'SEO description',
);
await expect(page.locator('head meta[property="og:description"]')).toHaveAttribute(
'content',
'SEO description',
);
await expect(
page.locator('head meta[property="og:description"]'),
).toHaveAttribute('content', 'SEO description');
await expect(page.locator('head link[rel="canonical"]')).toHaveAttribute(
'href',
allFilledUrlEn,
Expand Down Expand Up @@ -105,10 +108,9 @@ test('Metatags on Basic page', async ({ page }) => {
'content',
'SEO description DE',
);
await expect(page.locator('head meta[property="og:description"]')).toHaveAttribute(
'content',
'SEO description DE',
);
await expect(
page.locator('head meta[property="og:description"]'),
).toHaveAttribute('content', 'SEO description DE');
await expect(page.locator('head link[rel="canonical"]')).toHaveAttribute(
'href',
allFilledUrlDe,
Expand Down

0 comments on commit e158b58

Please sign in to comment.