mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-10-15 03:51:22 +02:00
test: use checkbox semantics in Slack recovery coverage
Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
1 parent
49041e0d8b
commit
bcd12a046c
1 file changed
+1
-1
@@ -64,7 +64,7 @@ describe("automatic Slack setup actions", () => {
|
||||
it("requires an explicit checked-no-app confirmation before retrying an uncertain result", async () => {
|
||||
render({ ...endpoint, setup: { ...endpoint.setup!, slackRegistration: { status: "uncertain", errorCode: "slack_creation_uncertain" } } });
|
||||
expect(container.querySelector("input[type=password]")).toBeNull();
|
||||
flushSync(() => container.querySelector<HTMLInputElement>("input[type=checkbox]")!.click());
|
||||
flushSync(() => container.querySelector<HTMLButtonElement>('[role="checkbox"]')!.click());
|
||||
enter("new-token"); click("Create Slack app"); await settle();
|
||||
expect(api.createSlackApp.mock.calls[0][1]).toMatchObject({ confirmedNoAppCreated: true });
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user