-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #208 from Enterprise-CMCS/master
Release to val
- Loading branch information
Showing
14 changed files
with
356 additions
and
290 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,12 +17,15 @@ test("has title", async ({ page }) => { | |
await expect(page).toHaveTitle(/CMS MAKO/); | ||
}); | ||
|
||
test("see frequently asked questions header when in faq page", async ({ page }) => { | ||
test("see frequently asked questions header when in faq page", async ({ | ||
page, | ||
}) => { | ||
await page.goto("/"); | ||
const popup = page.waitForEvent("popup"); | ||
await page.getByRole("link", { name: "FAQ", exact: true }).click(); | ||
const foundFaqHeading = await popup; | ||
await foundFaqHeading.getByRole("heading", { name: "Frequently Asked Questions" }) | ||
await foundFaqHeading | ||
.getByRole("heading", { name: "Frequently Asked Questions" }) | ||
.isVisible(); | ||
expect(foundFaqHeading).toBeTruthy(); | ||
}); | ||
|
@@ -32,8 +35,8 @@ test("see dashboard link when log in", async ({ page }) => { | |
await page.getByRole("button", { name: "Sign In" }).click(); | ||
await page | ||
.getByRole("textbox", { name: "[email protected]" }) | ||
.type(testUsers.state); | ||
await page.getByRole("textbox", { name: "Password" }).type(password); | ||
.fill(testUsers.state); | ||
await page.getByRole("textbox", { name: "Password" }).fill(password); | ||
await page.getByRole("button", { name: "submit" }).click(); | ||
await page.getByRole("link", { name: "Dashboard" }).click(); | ||
|
||
|
@@ -46,8 +49,8 @@ test("see dashboard link when log in", async ({ page }) => { | |
test("failed incorrect login username", async ({ page }) => { | ||
await page.goto("/"); | ||
await page.getByRole("button", { name: "Sign In" }).click(); | ||
await page.getByRole("textbox", { name: "[email protected]" }).type("."); | ||
await page.getByRole("textbox", { name: "Password" }).type(password); | ||
await page.getByRole("textbox", { name: "[email protected]" }).fill("."); | ||
await page.getByRole("textbox", { name: "Password" }).fill(password); | ||
await page.getByRole("button", { name: "submit" }).click(); | ||
await page.locator("#loginErrorMessage").first().isVisible(); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { FC, ReactNode } from "react"; | ||
import { cn } from "@/lib"; | ||
|
||
interface SectionCardProps { | ||
children: ReactNode; | ||
className?: string; | ||
title: string; | ||
} | ||
export const SectionCard: FC<SectionCardProps> = ({ | ||
title, | ||
children, | ||
className, | ||
}: SectionCardProps) => { | ||
return ( | ||
<div className={cn("border-2 border-slate-300 w-5/6 p-4", className)}> | ||
<section> | ||
<h1 className="font-bold text-2xl">{title}</h1> | ||
<div className="border-t-2 border-slate-300 w-full mt-2 mb-4" /> | ||
<div className="gap-8 flex flex-col">{children}</div> | ||
</section> | ||
</div> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
export * from "./CardWithTopBorder"; | ||
export * from "./SectionCard"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.