-
Notifications
You must be signed in to change notification settings - Fork 30
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 #193 from twilio-labs/fix/forSignal
Fix/for signal
- Loading branch information
Showing
81 changed files
with
2,887 additions
and
2,268 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 |
---|---|---|
|
@@ -42,4 +42,5 @@ package-lock.json | |
/playwright/.cache/ | ||
|
||
|
||
attendees.csv | ||
|
||
attendees-*.csv |
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
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 { test, expect, type Locator } from "@playwright/test"; | ||
import { Privilege } from "@/middleware"; | ||
|
||
test.describe("[no login]", () => { | ||
test("Should not see the page", async ({ page }) => { | ||
await page.goto("/event/test-event/kiosk"); | ||
|
||
await expect(page.getByText("Unauthorized")).toBeVisible(); | ||
}); | ||
}); | ||
|
||
test.describe("[kiosk]", () => { | ||
test("Form should be visible", async ({ page, context }) => { | ||
await context.addCookies([ | ||
{ | ||
name: "privilege", | ||
value: Privilege.KIOSK, | ||
url: "http://localhost:3000", | ||
}, | ||
]); | ||
context.setExtraHTTPHeaders({ | ||
Authorization: `Basic ${btoa(process.env.KIOSK_LOGIN || ":")}`, | ||
}); | ||
|
||
await page.goto("/event/test-event/kiosk"); | ||
|
||
await page.getByPlaceholder("Customer name").fill("Test Name"); | ||
await page.getByLabel("Order Item").click(); | ||
await page.getByLabel("Espresso", { exact: true }).click(); | ||
await page | ||
.getByPlaceholder("Without regular milk or similar...") | ||
.fill("Test Notes"); | ||
await page | ||
.getByRole("button", { name: "Create Order", exact: true }) | ||
.isEnabled(); | ||
}); | ||
}); |
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.