@vardot/varbase-e2e 2.0.2 → 2.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -298,89 +298,6 @@ When(/^(?:I |we )*close (?:the )?(?:accessibility |a11y )?checker$/, async funct
298
298
  await smartSettle(this.page, budget(this));
299
299
  });
300
300
 
301
- /**
302
- * Verify the page header is "working".
303
- *
304
- * On a Varbase site the Main navigation menu is rendered through the Drupal
305
- * Canvas global Header region, so a working header means those primary links
306
- * are present. Alter the links below to match your own site's main menu.
307
- *
308
- * Example: Then the page should have a working header
309
- *
310
- * Example #1: Then the page should have a working header
311
- * Example #2: And I should have a working header
312
- * Example #3: Then I should have a working header
313
- * Example #4: And we should have a working header
314
- * Example #5: Then the page should have a working header
315
- */
316
- Then(/^(?:the page should have|(?:I |we )*should have) a working header$/, async function () {
317
- // Smart-wait for the page to reach a quiet edge before reading the header.
318
- await smartSettle(this.page, (this.minWaitTime && this.minWaitTime.page) || 8000);
319
-
320
- // `banner` is the ARIA role of the site header (<header role="banner">).
321
- const header = this.page.getByRole('banner').first();
322
- const text = (await header.textContent().catch(() => '')) || '';
323
-
324
- // Main navigation menu links expected in the header (one per line):
325
- if (!text.includes('About Varbase')) throw friendly('Header is missing the "About Varbase" link.', 'Check the Main navigation menu in the Canvas Header region.');
326
- if (!text.includes('Features')) throw friendly('Header is missing the "Features" link.', 'Check the Main navigation menu in the Canvas Header region.');
327
- if (!text.includes('Blog')) throw friendly('Header is missing the "Blog" link.', 'Check the Main navigation menu in the Canvas Header region.');
328
- if (!text.includes('Contact Us')) throw friendly('Header is missing the "Contact Us" link.', 'Check the Main navigation menu in the Canvas Header region.');
329
- });
330
-
331
- /**
332
- * Verify the page footer is "working".
333
- *
334
- * On a Varbase site the Secondary, Footer and Social media menus are rendered
335
- * through the Drupal Canvas global Footer region. A working footer means the
336
- * footer link text is present, the social profiles are linked, and the credits
337
- * and logos show. Alter the lines below to match your own site.
338
- *
339
- * Example: Then the page should have a working footer
340
- *
341
- * Example #1: Then the page should have a working footer
342
- * Example #2: And I should have a working footer
343
- * Example #3: Then I should have a working footer
344
- * Example #4: And we should have a working footer
345
- * Example #5: Then the page should have a working footer
346
- */
347
- Then(/^(?:the page should have|(?:I |we )*should have) a working footer$/, async function () {
348
- // Smart-wait for the page to reach a quiet edge before reading the footer.
349
- await smartSettle(this.page, (this.minWaitTime && this.minWaitTime.page) || 8000);
350
-
351
- // `contentinfo` is the ARIA role of the site footer (<footer role="contentinfo">).
352
- // Scope to the role so card/section <footer> elements elsewhere are ignored.
353
- const footer = this.page.getByRole('contentinfo').first();
354
- const text = (await footer.textContent().catch(() => '')) || '';
355
-
356
- // Secondary menu (Footer sitemap / Quicklinks) link text (one per line):
357
- if (!text.includes('Quicklinks')) throw friendly('Footer is missing the "Quicklinks" heading.', 'Check the Secondary menu in the Canvas Footer region.');
358
- if (!text.includes('Features')) throw friendly('Footer is missing the "Features" link.', 'Check the Secondary menu in the Canvas Footer region.');
359
- if (!text.includes('About Varbase')) throw friendly('Footer is missing the "About Varbase" link.', 'Check the Secondary menu in the Canvas Footer region.');
360
-
361
- // Footer menu (Support) link text (one per line):
362
- if (!text.includes('Support')) throw friendly('Footer is missing the "Support" heading.', 'Check the Footer menu in the Canvas Footer region.');
363
- if (!text.includes('Documentation')) throw friendly('Footer is missing the "Documentation" link.', 'Check the Footer menu in the Canvas Footer region.');
364
- if (!text.includes('Get Professional Support')) throw friendly('Footer is missing the "Get Professional Support" link.', 'Check the Footer menu in the Canvas Footer region.');
365
- if (!text.includes('Community Support')) throw friendly('Footer is missing the "Community Support" link.', 'Check the Footer menu in the Canvas Footer region.');
366
-
367
- // Footer credit and legal text (one per line):
368
- if (!text.includes('Enjoy the free software, or')) throw friendly('Footer is missing the "Enjoy the free software, or get a quote ..." credit.');
369
- if (!text.includes('get a quote')) throw friendly('Footer is missing the "get a quote" link text.');
370
- if (!text.includes('Terms and Conditions')) throw friendly('Footer is missing the "Terms and Conditions" link.');
371
- if (!text.includes('Powered by')) throw friendly('Footer is missing the "Powered by" credit.');
372
-
373
- // Social media menu profiles - full links (one per line):
374
- if ((await footer.locator('a[href="https://www.linkedin.com/company/vardot"]').count()) === 0) throw friendly('Footer is missing the LinkedIn link (https://www.linkedin.com/company/vardot).', 'Check the Social media menu in the Canvas Footer region.');
375
- if ((await footer.locator('a[href="https://www.facebook.com/vardotters/"]').count()) === 0) throw friendly('Footer is missing the Facebook link (https://www.facebook.com/vardotters/).', 'Check the Social media menu in the Canvas Footer region.');
376
- if ((await footer.locator('a[href="https://www.instagram.com/vardotters/"]').count()) === 0) throw friendly('Footer is missing the Instagram link (https://www.instagram.com/vardotters/).', 'Check the Social media menu in the Canvas Footer region.');
377
- if ((await footer.locator('a[href="https://x.com/Vardot"]').count()) === 0) throw friendly('Footer is missing the X link (https://x.com/Vardot).', 'Check the Social media menu in the Canvas Footer region.');
378
-
379
- // Footer logos (one per line):
380
- if ((await footer.locator('img[alt="Varbase logo"]').count()) === 0) throw friendly('Footer is missing the Varbase logo.');
381
- if ((await footer.locator('img[alt="Vardot"]').count()) === 0) throw friendly('Footer is missing the Vardot logo next to "Powered by".');
382
- });
383
-
384
301
  /**
385
302
  * Press a responsive-preview device button (Drupal core Responsive preview).
386
303
  *