-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix stripe API unit tests * add a basic stripe e2e test * fix types * fix UI error throwing
- Loading branch information
1 parent
a6ab6de
commit 1a83fa3
Showing
5 changed files
with
44 additions
and
2 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
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,37 @@ | ||
import { expect } from "@playwright/test"; | ||
import { test } from "./base"; | ||
import { describe } from "node:test"; | ||
|
||
describe("Stripe Link Creation Tests", () => { | ||
test("A user can see the link creation screen", async ({ | ||
page, | ||
becomeUser, | ||
}) => { | ||
await becomeUser(page); | ||
await expect( | ||
page.locator("a").filter({ hasText: "Management Portal DEV ENV" }), | ||
).toBeVisible(); | ||
await expect( | ||
page.locator("a").filter({ hasText: "Stripe Link Creator" }), | ||
).toBeVisible(); | ||
await page.locator("a").filter({ hasText: "Stripe Link Creator" }).click(); | ||
await expect( | ||
page.getByRole("textbox", { name: "Invoice Recipient Email" }), | ||
).toBeVisible(); | ||
await expect( | ||
page.getByRole("heading", { name: "Stripe Link Creator" }), | ||
).toBeVisible(); | ||
await expect( | ||
page.getByRole("textbox", { name: "Invoice ID" }), | ||
).toBeVisible(); | ||
await expect( | ||
page.getByRole("textbox", { name: "Invoice Amount" }), | ||
).toBeVisible(); | ||
await expect( | ||
page.getByRole("textbox", { name: "Invoice Recipient Name" }), | ||
).toBeVisible(); | ||
await expect( | ||
page.getByRole("textbox", { name: "Invoice Recipient Email" }), | ||
).toBeVisible(); | ||
}); | ||
}); |
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