Add a post-launch connectors step to onboarding
This commit is contained in:
1 parent
3669b5dfc6
commit
934fa71486
8 files changed
+241
-97
No files matched your search
@@ -38,6 +38,11 @@ test("onboards, hires, and creates work in the Electron shell", async () => {
|
||||
await page.getByLabel("Acceptance criteria").fill("The CEO creates the kickoff operating loop.");
|
||||
await page.getByRole("button", { name: "Launch" }).click();
|
||||
|
||||
// The company exists after Launch; the wizard closes with the optional
|
||||
// connectors step.
|
||||
await expect(page.getByRole("heading", { name: "Connectors" })).toBeVisible();
|
||||
await page.getByRole("button", { name: "Finish" }).click();
|
||||
|
||||
await expect(page.getByRole("button", { name: /Acme Operations/ })).toBeVisible();
|
||||
await page.getByRole("button", { name: "Work", exact: true }).click();
|
||||
await expect(page.getByText("Projects", { exact: true })).toBeVisible();
|
||||
|
||||
@@ -34,6 +34,8 @@ test("the office floor opens agent details on click", async () => {
|
||||
await page.getByLabel("Goal").fill("Verify the office floor.");
|
||||
await page.getByLabel("Acceptance criteria").fill("Clicking an agent opens their card.");
|
||||
await page.getByRole("button", { name: "Launch" }).click();
|
||||
await expect(page.getByRole("heading", { name: "Connectors" })).toBeVisible();
|
||||
await page.getByRole("button", { name: "Finish" }).click();
|
||||
await expect(page.getByRole("button", { name: /Pixel Works/ })).toBeVisible();
|
||||
|
||||
await page.getByRole("button", { name: "Office", exact: true }).click();
|
||||
|
||||
@@ -43,6 +43,10 @@ test("captures every page for visual review", async () => {
|
||||
await page.screenshot({ path: join(outDir, "04-onboarding-goal.png"), fullPage: false });
|
||||
await page.getByRole("button", { name: "Launch" }).click();
|
||||
|
||||
await expect(page.getByRole("heading", { name: "Connectors" })).toBeVisible();
|
||||
await page.screenshot({ path: join(outDir, "05-onboarding-connectors.png"), fullPage: false });
|
||||
await page.getByRole("button", { name: "Finish" }).click();
|
||||
|
||||
await expect(page.getByRole("button", { name: /OrbitOps/ })).toBeVisible();
|
||||
await snap(page, outDir, "10-home");
|
||||
|
||||
|
||||
Reference in new issue
Block a user