Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion app/tests/access-requests-layout.test.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { afterAll, beforeAll, describe, expect, test } from "bun:test";
import { afterAll, beforeAll, describe, expect } from "bun:test";
import { existsSync, mkdirSync, readFileSync } from "node:fs";
import { dirname, join } from "node:path";
import type { Browser, BrowserType, Locator, Page } from "playwright-core";
import { compile } from "tailwindcss";
import { test } from "./renderer-crash";

/**
* An admin's Requests section in a real browser, in an organization whose apps are open and in one
Expand Down
3 changes: 2 additions & 1 deletion app/tests/admin-path-layout.test.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { afterAll, beforeAll, describe, expect, test } from "bun:test";
import { afterAll, beforeAll, describe, expect } from "bun:test";
import { existsSync, mkdirSync, readFileSync } from "node:fs";
import { dirname, join } from "node:path";
import type { Browser, BrowserType, Locator, Page } from "playwright-core";
import { compile } from "tailwindcss";
import { test } from "./renderer-crash";

/**
* "This app needs an admin", in a real browser, as a member and an admin read it.
Expand Down
3 changes: 2 additions & 1 deletion app/tests/admin-people-remove-layout.test.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { afterAll, describe, expect, test } from "bun:test";
import { afterAll, describe, expect } from "bun:test";
import { existsSync, mkdirSync, readFileSync } from "node:fs";
import { dirname, join } from "node:path";
import type { Browser, Page } from "playwright-core";
import { compile } from "tailwindcss";
import { still } from "./page-still";
import { test } from "./renderer-crash";

/**
* Removing somebody on a self-hosted OpenBot that keeps one shared organization and lets people
Expand Down
3 changes: 2 additions & 1 deletion app/tests/admin-providers-connection.test.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { afterAll, beforeAll, describe, expect, test } from "bun:test";
import { afterAll, beforeAll, describe, expect } from "bun:test";
import { existsSync, mkdirSync, readdirSync, readFileSync } from "node:fs";
import { dirname, join } from "node:path";
import type { Browser, BrowserType, Page, Request } from "playwright-core";
Expand Down Expand Up @@ -28,6 +28,7 @@ import {
overviewResponse,
} from "./admin-settings-api";
import { still } from "./page-still";
import { test } from "./renderer-crash";

/**
* Admin → AI providers: an admin changes the organization's AI, disconnects it and connects another,
Expand Down
3 changes: 2 additions & 1 deletion app/tests/admin-request-notify-layout.test.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { afterAll, beforeAll, describe, expect, test } from "bun:test";
import { afterAll, beforeAll, describe, expect } from "bun:test";
import { existsSync, mkdirSync, readFileSync } from "node:fs";
import { dirname, join } from "node:path";
import type { Browser, BrowserType, Locator, Page } from "playwright-core";
import { compile } from "tailwindcss";
import { test } from "./renderer-crash";

/**
* The screens an admin hears about requests for apps on, in a real browser: Settings,
Expand Down
3 changes: 2 additions & 1 deletion app/tests/ai-connection-dialog.test.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { afterAll, beforeAll, describe, expect, test } from "bun:test";
import { afterAll, beforeAll, describe, expect } from "bun:test";
import { existsSync, mkdirSync, readdirSync, readFileSync } from "node:fs";
import { dirname, join } from "node:path";
import type { Browser, BrowserType, Page, Request } from "playwright-core";
Expand All @@ -11,6 +11,7 @@ import {
} from "@/lib/api/generated/models/models.zod";
import { personBody } from "./accounts-api";
import { still } from "./page-still";
import { test } from "./renderer-crash";

/**
* Settings → General → AI model changes the AI connection in the app, with OpenBot running.
Expand Down
3 changes: 2 additions & 1 deletion app/tests/another-account-layout.test.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { afterAll, beforeAll, describe, expect, test } from "bun:test";
import { afterAll, beforeAll, describe, expect } from "bun:test";
import { existsSync, mkdirSync, readFileSync } from "node:fs";
import { dirname, join } from "node:path";
import type { Browser, BrowserType, Page } from "playwright-core";
import { compile } from "tailwindcss";
import { myAccountPath, myConnectionPath } from "./connections-api";
import { test } from "./renderer-crash";

/**
* The card for one more account at an app, in a real browser, in the app's stylesheet.
Expand Down
3 changes: 2 additions & 1 deletion app/tests/app-frame-skeleton-still.test.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { afterAll, beforeAll, describe, expect, test } from "bun:test";
import { afterAll, beforeAll, describe, expect } from "bun:test";
import { existsSync, mkdirSync, readdirSync, readFileSync } from "node:fs";
import { dirname, join } from "node:path";
import type { Browser, BrowserType, Page, Route } from "playwright-core";
import { compile } from "tailwindcss";
import { test } from "./renderer-crash";

/**
* The frame drawn while the sign-in checks run lines up with the real one.
Expand Down
3 changes: 2 additions & 1 deletion app/tests/approval-answered-layout.test.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import { afterAll, beforeAll, describe, expect, test } from "bun:test";
import { afterAll, beforeAll, describe, expect } from "bun:test";
import { existsSync, mkdirSync, readFileSync } from "node:fs";
import { dirname, join } from "node:path";
import { DECLINED_BY_PERSON } from "@openbot/shared/approval-outcomes";
import type { Browser, BrowserType, Page, Route } from "playwright-core";
import { compile } from "tailwindcss";
import { approvalInboxResponse, approvalWriteResponse } from "./approvals-api";
import { test } from "./renderer-crash";

/**
* An approval the person answered stays in the conversation, in a real browser, live and after a
Expand Down
3 changes: 2 additions & 1 deletion app/tests/approval-left-carry-on-browser.test.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { afterAll, beforeAll, describe, expect, test } from "bun:test";
import { afterAll, beforeAll, describe, expect } from "bun:test";
import { existsSync, mkdirSync, readFileSync } from "node:fs";
import { dirname, join } from "node:path";
import type { Server } from "bun";
Expand All @@ -11,6 +11,7 @@ import { personBody } from "./accounts-api";
import { approvalInboxResponse } from "./approvals-api";
import { botGrantsBody } from "./bot-grants-api";
import { still } from "./page-still";
import { test } from "./renderer-crash";

/**
* A turn the server gave up carrying on after the person's decision, in a real browser: the step
Expand Down
3 changes: 2 additions & 1 deletion app/tests/approval-rules-layout.test.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { afterAll, beforeAll, describe, expect, test } from "bun:test";
import { afterAll, beforeAll, describe, expect } from "bun:test";
import { existsSync, mkdirSync, readFileSync } from "node:fs";
import { dirname, join } from "node:path";
import type { Browser, BrowserType, Page } from "playwright-core";
Expand All @@ -19,6 +19,7 @@ import {
} from "./bot-grants-api";
import { answerBotsList, BOTS_PATH, botResponse } from "./bots-api";
import { still } from "./page-still";
import { test } from "./renderer-crash";

/**
* Every list of approval rules in a real browser: Admin → Approvals' organization rules, Settings →
Expand Down
3 changes: 2 additions & 1 deletion app/tests/artifact-collab-browser.test.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { afterAll, beforeAll, describe, expect, test } from "bun:test";
import { afterAll, beforeAll, describe, expect } from "bun:test";
import { existsSync, mkdirSync, readFileSync } from "node:fs";
import { dirname, join } from "node:path";
import type {
Expand All @@ -14,6 +14,7 @@ import {
type Person,
} from "./artifact-pages-api";
import { still } from "./page-still";
import { test } from "./renderer-crash";

/**
* Comments, presence and a page artifact's capabilities, in a real browser, with two people.
Expand Down
3 changes: 2 additions & 1 deletion app/tests/artifact-events-socket.test.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { afterAll, beforeAll, describe, expect, test } from "bun:test";
import { afterAll, beforeAll, describe, expect } from "bun:test";
import { join } from "node:path";
import type { Server, ServerWebSocket } from "bun";
import type { Browser } from "playwright-core";
import { marksPlugin } from "./marks-plugin";
import { test } from "./renderer-crash";

/**
* AN OPEN ARTIFACT'S SOCKET STOPS ASKING AN ADDRESS THAT ISN'T THERE.
Expand Down
3 changes: 2 additions & 1 deletion app/tests/artifact-sharing-screens-layout.test.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { afterAll, beforeAll, describe, expect, test } from "bun:test";
import { afterAll, beforeAll, describe, expect } from "bun:test";
import { existsSync, mkdirSync, readFileSync } from "node:fs";
import { dirname, join } from "node:path";
import type { Browser, BrowserType, Page, Request } from "playwright-core";
Expand All @@ -17,6 +17,7 @@ import {
} from "./admin-settings-api";
import { marksPlugin } from "./marks-plugin";
import { still } from "./page-still";
import { test } from "./renderer-crash";

/**
* Admin, Artifacts and an artifact's Share dialog, in a real browser.
Expand Down
3 changes: 2 additions & 1 deletion app/tests/artifact-sign-in-refusal-browser.test.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { afterAll, beforeAll, describe, expect, test } from "bun:test";
import { afterAll, beforeAll, describe, expect } from "bun:test";
import { existsSync, mkdirSync, readFileSync } from "node:fs";
import { dirname, join } from "node:path";
import type { Browser, BrowserType } from "playwright-core";
import { compile } from "tailwindcss";
import { still } from "./page-still";
import { test } from "./renderer-crash";

/**
* An artifact a person's sign-in may not see is not "deleted".
Expand Down
3 changes: 2 additions & 1 deletion app/tests/artifact-tool-cards-browser.test.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import { afterAll, beforeAll, describe, expect, test } from "bun:test";
import { afterAll, beforeAll, describe, expect } from "bun:test";
import { existsSync, mkdirSync, readFileSync } from "node:fs";
import { dirname, join } from "node:path";
import type { Browser, BrowserType, Page } from "playwright-core";
import { compile } from "tailwindcss";
import { artifactRecord, ME, versionContent } from "./artifact-tool-cards.data";
import { still } from "./page-still";
import { test } from "./renderer-crash";
import { apiTask } from "./task-report-chip.data";

/**
Expand Down
3 changes: 2 additions & 1 deletion app/tests/artifacts-kit.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { afterAll, beforeAll, describe, expect, test } from "bun:test";
import { afterAll, beforeAll, describe, expect } from "bun:test";
import {
existsSync,
mkdirSync,
Expand All @@ -15,6 +15,7 @@ import { build } from "esbuild";
import type { Browser, Page } from "playwright-core";
import { compile } from "tailwindcss";
import { scheme, TOKENS } from "../../tokens/src/scheme";
import { test } from "./renderer-crash";

/**
* The artifacts kit: what a Bot's page is compiled against (app/scripts/build-artifacts-kit.ts).
Expand Down
3 changes: 2 additions & 1 deletion app/tests/artifacts-screens.test.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { afterAll, beforeAll, describe, expect, test } from "bun:test";
import { afterAll, beforeAll, describe, expect } from "bun:test";
import { existsSync, mkdirSync, readFileSync } from "node:fs";
import { dirname, join } from "node:path";
import type {
Expand All @@ -22,6 +22,7 @@ import {
} from "./artifacts-api";
import { marksPlugin } from "./marks-plugin";
import { still } from "./page-still";
import { test } from "./renderer-crash";

/**
* The artifact screens, in a real browser: the card a Bot's artifact tool draws in a conversation,
Expand Down
3 changes: 2 additions & 1 deletion app/tests/audit-approval-trace-layout.test.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { afterAll, describe, expect, test } from "bun:test";
import { afterAll, describe, expect } from "bun:test";
import { existsSync, mkdirSync, readFileSync } from "node:fs";
import { dirname, join } from "node:path";
import type { Browser, Page } from "playwright-core";
import { compile } from "tailwindcss";
import { still } from "./page-still";
import { test } from "./renderer-crash";

/**
* Admin's Activity with an approval waiting, an allowed action not carried out, and a question answered or put
Expand Down
3 changes: 2 additions & 1 deletion app/tests/audit-bot-work-layout.test.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { afterAll, describe, expect, test } from "bun:test";
import { afterAll, describe, expect } from "bun:test";
import { existsSync, mkdirSync, readFileSync } from "node:fs";
import { dirname, join } from "node:path";
import type { Browser, Page } from "playwright-core";
import { compile } from "tailwindcss";
import { still } from "./page-still";
import { test } from "./renderer-crash";

/**
* Admin's Activity with a Bot's own work on it, in a real browser, in light and dark, wide and on a phone.
Expand Down
3 changes: 2 additions & 1 deletion app/tests/audit-change-outcome-layout.test.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { afterAll, describe, expect, test } from "bun:test";
import { afterAll, describe, expect } from "bun:test";
import { existsSync, mkdirSync, readFileSync } from "node:fs";
import { dirname, join } from "node:path";
import type { Browser, Page } from "playwright-core";
import { compile } from "tailwindcss";
import { still } from "./page-still";
import { test } from "./renderer-crash";

/**
* Admin's Activity with a change that failed and one whose end nobody could confirm, in a real browser, in light and
Expand Down
3 changes: 2 additions & 1 deletion app/tests/audit-computer-limit-layout.test.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { afterAll, describe, expect, test } from "bun:test";
import { afterAll, describe, expect } from "bun:test";
import { existsSync, mkdirSync, readFileSync } from "node:fs";
import { dirname, join } from "node:path";
import type { Browser, Page } from "playwright-core";
import { compile } from "tailwindcss";
import { still } from "./page-still";
import { test } from "./renderer-crash";

/**
* Admin's Activity with a computer refused at a limit, in a real browser, in light and dark, wide and on a phone.
Expand Down
3 changes: 2 additions & 1 deletion app/tests/board-row-layout.test.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { afterAll, beforeAll, describe, expect, test } from "bun:test";
import { afterAll, beforeAll, describe, expect } from "bun:test";
import { existsSync, mkdirSync, readFileSync } from "node:fs";
import { dirname, join } from "node:path";
import type { Browser, BrowserType, Page } from "playwright-core";
import { compile } from "tailwindcss";
import { test } from "./renderer-crash";

/**
* A Needs you board row keeps its words readable at every width the board is drawn at.
Expand Down
3 changes: 2 additions & 1 deletion app/tests/bot-file-links-browser.test.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import { afterAll, beforeAll, describe, expect, test } from "bun:test";
import { afterAll, beforeAll, describe, expect } from "bun:test";
import { existsSync, mkdirSync, readFileSync } from "node:fs";
import { dirname, join } from "node:path";
import type { Browser, BrowserType } from "playwright-core";
import { compile } from "tailwindcss";
import { ATTACHMENT, FILE_NAME } from "./bot-file-links.data";
import { still } from "./page-still";
import { test } from "./renderer-crash";

/**
* A Bot's link to the file it sent downloads the file, in a real browser, and nothing in its words
Expand Down
3 changes: 2 additions & 1 deletion app/tests/bot-owner-lists-layout.test.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { afterAll, beforeAll, describe, expect, test } from "bun:test";
import { afterAll, beforeAll, describe, expect } from "bun:test";
import { existsSync, mkdirSync, readFileSync } from "node:fs";
import { dirname, join } from "node:path";
import type { Browser, BrowserType, Page } from "playwright-core";
Expand All @@ -22,6 +22,7 @@ import { answerBotsList } from "./bots-api";
import { COMPONENTS_PATH, componentBody } from "./components-api";
import { connectionPage, MY_CONNECTIONS_PATH } from "./connections-api";
import { still } from "./page-still";
import { test } from "./renderer-crash";
import { CHECK_IN_USAGE_PATH } from "./schedules-api";
import { SKILLS_PATH, skillsResponse } from "./skills-api";

Expand Down
3 changes: 2 additions & 1 deletion app/tests/browse-steps-layout.test.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { afterAll, beforeAll, describe, expect, test } from "bun:test";
import { afterAll, beforeAll, describe, expect } from "bun:test";
import { existsSync, mkdirSync, readFileSync } from "node:fs";
import { dirname, join } from "node:path";
import type { Browser, BrowserType, Page } from "playwright-core";
import { compile } from "tailwindcss";
import { test } from "./renderer-crash";

/**
* A Bot's browse steps, opened in a real conversation in a real browser.
Expand Down
3 changes: 2 additions & 1 deletion app/tests/bug-reports-layout.test.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { afterAll, beforeAll, describe, expect, test } from "bun:test";
import { afterAll, beforeAll, describe, expect } from "bun:test";
import { existsSync, mkdirSync, readFileSync } from "node:fs";
import { dirname, join } from "node:path";
import type { Browser, BrowserType, Page } from "playwright-core";
import { compile } from "tailwindcss";
import { test } from "./renderer-crash";

/**
* Report a bug, Your bug reports and Admin's Bug reports, in a real browser, in light and in dark,
Expand Down
3 changes: 2 additions & 1 deletion app/tests/carry-on-carried-turn-browser.test.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { afterAll, beforeAll, describe, expect, test } from "bun:test";
import { afterAll, beforeAll, describe, expect } from "bun:test";
import { existsSync, mkdirSync, readFileSync } from "node:fs";
import { dirname, join } from "node:path";
import type { Server } from "bun";
Expand All @@ -11,6 +11,7 @@ import { personBody } from "./accounts-api";
import { approvalBody, approvalInboxResponse } from "./approvals-api";
import { botGrantsBody } from "./bot-grants-api";
import { still } from "./page-still";
import { test } from "./renderer-crash";

/**
* Carry on while the server carries a turn on, in a real browser.
Expand Down
3 changes: 2 additions & 1 deletion app/tests/checkbox-contrast.test.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { afterAll, describe, expect, test } from "bun:test";
import { afterAll, describe, expect } from "bun:test";
import { existsSync, mkdirSync, readFileSync } from "node:fs";
import { dirname, join } from "node:path";
import type { Browser, Page } from "playwright-core";
import { compile } from "tailwindcss";
import { still } from "./page-still";
import { test } from "./renderer-crash";

/**
* An unticked tickbox can be seen, in light and in dark.
Expand Down
3 changes: 2 additions & 1 deletion app/tests/command-card-layout.test.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { afterAll, beforeAll, describe, expect, test } from "bun:test";
import { afterAll, beforeAll, describe, expect } from "bun:test";
import { existsSync, mkdirSync, readFileSync } from "node:fs";
import { dirname, join } from "node:path";
import type { Browser, BrowserType, Page } from "playwright-core";
import { compile } from "tailwindcss";
import { test } from "./renderer-crash";

/**
* A Bot's command, as the conversation and the Activity pane draw it, in a real browser.
Expand Down
3 changes: 2 additions & 1 deletion app/tests/compact-avatar-layout.test.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { afterAll, beforeAll, describe, expect, test } from "bun:test";
import { afterAll, beforeAll, describe, expect } from "bun:test";
import { existsSync, readFileSync } from "node:fs";
import { dirname, join } from "node:path";
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
Expand All @@ -9,6 +9,7 @@ import { BotLookProvider } from "../src/components/agents/bot-look";
import { ChannelItemContent } from "../src/components/app-sidebar/channel-item-content";
import { agentListQueryOptions } from "../src/lib/agents/queries";
import { deploymentKeys } from "../src/lib/deployment/queries";
import { test } from "./renderer-crash";

/**
* A compact conversation row's orbs sit whole inside their avatar.
Expand Down
Loading
Loading