final website is ready babeeehhhh
This commit is contained in:
+8
-6
@@ -81,22 +81,24 @@ test("desktop navigation, anchored CTA and browser back work", async ({
|
||||
).toHaveAttribute("aria-current", "page");
|
||||
await page
|
||||
.locator(".contact-banner")
|
||||
.getByRole("link", { name: "Talk to us", exact: true })
|
||||
.getByRole("link", { name: "Text us on WhatsApp", exact: true })
|
||||
.click();
|
||||
await expect(page).toHaveURL("/contact#whatsapp");
|
||||
await expect(page.locator("#whatsapp")).toBeInViewport();
|
||||
await expect(
|
||||
page.getByRole("button", { name: "Talk to us", exact: true }),
|
||||
).toBeDisabled();
|
||||
page
|
||||
.locator(".whatsapp")
|
||||
.getByRole("link", { name: "Text us on WhatsApp", exact: true }),
|
||||
).toHaveAttribute("href", /wa\.me/);
|
||||
await expect(page.locator("#whatsapp-status")).toContainText(
|
||||
"number to be supplied",
|
||||
"Opens WhatsApp",
|
||||
);
|
||||
await page.goBack();
|
||||
await expect(page).toHaveURL("/fabrics");
|
||||
await page.goto("/contact#whatsapp");
|
||||
await page
|
||||
.locator(".contact-banner")
|
||||
.getByRole("link", { name: "Talk to us", exact: true })
|
||||
.getByRole("link", { name: "Text us on WhatsApp", exact: true })
|
||||
.click();
|
||||
await expect(page.locator("#whatsapp")).toBeInViewport();
|
||||
});
|
||||
@@ -240,7 +242,7 @@ test("home and products heroes cycle through four product images", async ({
|
||||
await expect(page.getByText("Women’s wear", { exact: true })).toBeVisible();
|
||||
});
|
||||
|
||||
test("capacity values roll in opposite directions and settle at 60–70", async ({
|
||||
test("capacity values roll in opposite directions and settle at 60-70", async ({
|
||||
page,
|
||||
}) => {
|
||||
for (const path of ["/", "/fabrics"]) {
|
||||
|
||||
Reference in New Issue
Block a user