-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcore.spec.ts
More file actions
506 lines (419 loc) · 23.1 KB
/
Copy pathcore.spec.ts
File metadata and controls
506 lines (419 loc) · 23.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
import { expect, test } from "./testHarness";
import {
ASSISTANT_MODEL_ID,
GATEWAY_URL,
TEST_TOKEN,
clickAdvancedNav,
completeQuickstartLocalOnboarding,
moveWizardToConnectionStep,
openWizard,
wizard,
} from "./onboardingFlow";
const CLAUDE_API_KEY = "sk-ant-api03-test-key";
const CLAUDE_MODEL_ID = "claude-sonnet-4-5";
test.describe("mission-control core onboarding + crash-proofing @core", () => {
test("settings modal uses caveman-friendly setup accordions without default scroll overload", async ({
page,
}) => {
await page.setViewportSize({ width: 1280, height: 800 });
await completeQuickstartLocalOnboarding(page);
await page.locator('[data-tour-id="nav-config"]').click();
await expect(page.getByRole("heading", { name: "Settings" })).toBeVisible();
const modal = page.locator(".mc-settings-modal");
const modalBody = page.locator(".mc-settings-body");
const modalBox = await modal.boundingBox();
expect(modalBox?.width ?? 0).toBeGreaterThan(760);
expect(modalBox?.width ?? 0).toBeLessThanOrEqual(920);
await expect(page.getByText("Appearance")).toHaveCount(0);
await expect(page.getByText("1. Connect this app")).toBeVisible();
await expect(page.getByText("2. Choose what pages show")).toBeVisible();
await expect(page.getByText("3. Shared assistant instructions")).toBeVisible();
const defaultBodyLayout = await modalBody.evaluate((node) => {
const element = node as HTMLElement;
const style = window.getComputedStyle(element);
return {
overflowY: style.overflowY,
scrollHeight: element.scrollHeight,
clientHeight: element.clientHeight,
};
});
expect(defaultBodyLayout.overflowY).toBe("auto");
expect(defaultBodyLayout.scrollHeight - defaultBodyLayout.clientHeight).toBeLessThanOrEqual(1);
await page.getByText("3. Shared assistant instructions").click();
const promptField = page.locator(".mc-settings-prompt");
await expect(promptField).toBeVisible();
const promptMetrics = await promptField.evaluate((node) => {
const element = node as HTMLTextAreaElement;
const style = window.getComputedStyle(element);
return {
overflowY: style.overflowY,
scrollHeight: element.scrollHeight,
clientHeight: element.clientHeight,
};
});
const promptBox = await promptField.boundingBox();
expect(["auto", "hidden", "clip"]).toContain(promptMetrics.overflowY);
expect(promptMetrics.clientHeight).toBeGreaterThan(160);
expect(promptMetrics.clientHeight).toBeLessThan(280);
expect(promptBox?.width ?? 0).toBeGreaterThan(700);
expect(promptBox?.height ?? 0).toBeLessThan(280);
});
test("quick guides collapse globally and reopen only for the active page", async ({
page,
}) => {
await page.setViewportSize({ width: 1280, height: 800 });
await completeQuickstartLocalOnboarding(page);
const activeQuickGuide = page.locator(
'.mc-tab-pane[style*="display: flex"] .mc-tab-help-banner'
);
await expect(activeQuickGuide).toBeVisible();
await activeQuickGuide.getByRole("button", { name: "Hide quick guides" }).click();
await expect(page.locator(".mc-tab-help-banner")).toHaveCount(0);
await page.locator('[data-tour-id="nav-team"]').click();
await expect(activeQuickGuide).toHaveCount(0);
await page.getByRole("button", { name: "Show quick guide for this page" }).click();
await expect(activeQuickGuide).toBeVisible();
await page.locator('[data-tour-id="nav-boards"]').click();
await expect(activeQuickGuide).toHaveCount(0);
await page.locator('[data-tour-id="nav-team"]').click();
await expect(activeQuickGuide).toBeVisible();
});
test("cockpit default layout stays spread across the screen and persists across tab changes", async ({
page,
}) => {
await page.setViewportSize({ width: 1280, height: 800 });
await completeQuickstartLocalOnboarding(page);
await clickAdvancedNav(page, "cockpit");
await expect(page.locator(".mc-cockpit-grid")).toBeVisible();
await expect(page.locator(".mc-rgl-canvas .react-grid-item")).toHaveCount(9);
const initialMetrics = await page.locator(".mc-rgl-canvas").evaluate((node) => {
const canvas = node as HTMLElement;
const widgets = Array.from(canvas.querySelectorAll<HTMLElement>(".react-grid-item"));
const topValues = widgets.map((widget) => Math.round(widget.getBoundingClientRect().top));
return {
widgetCount: widgets.length,
uniqueRows: Array.from(new Set(topValues)).length,
};
});
expect(initialMetrics.widgetCount).toBeGreaterThanOrEqual(9);
expect(initialMetrics.uniqueRows).toBeLessThanOrEqual(2);
await page.getByRole("button", { name: "Enter cockpit edit mode" }).click();
const eventTailWidget = page
.locator(".mc-cockpit-widget", {
has: page.getByRole("heading", { name: "Event Tail" }),
})
.first();
await eventTailWidget.getByRole("button", { name: "Move widget right" }).click();
await page.getByRole("button", { name: "Exit cockpit edit mode" }).click();
const storageBeforeTabChange = await page.evaluate(() =>
window.localStorage.getItem("mc-cockpit-pages-v3")
);
await page.locator('[data-tour-id="nav-boards"]').click();
await clickAdvancedNav(page, "cockpit");
const storageAfterTabChange = await page.evaluate(() =>
window.localStorage.getItem("mc-cockpit-pages-v3")
);
expect(storageAfterTabChange).toBe(storageBeforeTabChange);
const contentArea = page.locator(".mc-content-area");
const metrics = await contentArea.evaluate((node) => {
const area = node as HTMLElement;
return {
overflowY: window.getComputedStyle(area).overflowY,
scrollDelta: area.scrollHeight - area.clientHeight,
};
});
expect(metrics.overflowY).toBe("auto");
expect(metrics.scrollDelta).toBeLessThanOrEqual(1);
});
test("cockpit heals legacy stacked pages and supports horizontal resize in edit mode", async ({
page,
}) => {
await page.setViewportSize({ width: 1280, height: 800 });
await completeQuickstartLocalOnboarding(page, {
beforeGoto: async (targetPage) => {
await targetPage.addInitScript(() => {
window.localStorage.removeItem("mc-cockpit-pages-v1");
window.localStorage.removeItem("mc-cockpit-pages-v2");
window.localStorage.setItem(
"mc-cockpit-pages-v3",
JSON.stringify([
{
page_id: "page-legacy-collapsed",
name: "Dashboard",
widgets: [
{ instance_id: "health-template", widget: "health", title: "Pinned Health Strip", position: { x: 0, y: 0, w: 10, h: 4 } },
{ instance_id: "focus-template", widget: "focus", title: "Incident Queue", position: { x: 0, y: 4, w: 10, h: 4 } },
{ instance_id: "breakers-template", widget: "breakers", title: "Breaker Radar", position: { x: 0, y: 8, w: 10, h: 4 } },
{ instance_id: "jobs-template", widget: "jobs", title: "Scheduler Matrix", position: { x: 0, y: 12, w: 10, h: 4 } },
{ instance_id: "channels-template", widget: "channels", title: "Channel Control", position: { x: 0, y: 16, w: 10, h: 4 } },
{ instance_id: "profiles-template", widget: "profiles", title: "Agent Provider Routing", position: { x: 0, y: 20, w: 10, h: 4 } },
{ instance_id: "skills-template", widget: "skills", title: "Skills Control", position: { x: 0, y: 24, w: 10, h: 4 } },
{ instance_id: "plugins-template", widget: "plugins", title: "Plugins Control", position: { x: 0, y: 28, w: 10, h: 4 } },
{ instance_id: "events-template", widget: "events", title: "Event Tail", position: { x: 0, y: 32, w: 10, h: 4 } },
],
},
])
);
});
},
});
await clickAdvancedNav(page, "cockpit");
await expect(page.locator(".mc-rgl-canvas .react-grid-item")).toHaveCount(9);
const healedLayout = await page.evaluate(() =>
JSON.parse(window.localStorage.getItem("mc-cockpit-pages-v3") ?? "[]")
);
const healedWidgets = healedLayout[0]?.widgets ?? [];
const distinctX = new Set(healedWidgets.map((widget: { position: { x: number } }) => widget.position.x));
expect(distinctX.size).toBeGreaterThan(1);
await page.getByRole("button", { name: "Enter cockpit edit mode" }).click();
const eventTile = page
.locator(".react-grid-item", {
has: page.getByRole("heading", { name: "Event Tail" }),
})
.first();
await expect(eventTile).toBeVisible();
const eventHandle = eventTile.locator(".react-resizable-handle-e");
await expect(eventHandle).toBeVisible();
const startBox = await eventHandle.boundingBox();
if (!startBox) {
throw new Error("east resize handle not measurable");
}
await page.mouse.move(startBox.x + startBox.width / 2, startBox.y + startBox.height / 2);
await page.mouse.down();
await page.mouse.move(startBox.x + 140, startBox.y + startBox.height / 2, { steps: 10 });
await page.mouse.up();
const resizedLayout = await page.evaluate(() =>
JSON.parse(window.localStorage.getItem("mc-cockpit-pages-v3") ?? "[]")
);
const resizedEvent = (resizedLayout[0]?.widgets ?? []).find(
(widget: { instance_id: string }) => widget.instance_id === "events-template"
);
expect(resizedEvent?.position.w ?? 0).toBeGreaterThan(2);
});
test("auto-opens onboarding, supports dismiss, and can reopen from settings", async ({ page }) => {
await expect(await openWizard(page)).toBe(true);
await page.getByRole("button", { name: "Dismiss (24h)" }).click();
await expect(page.getByRole("heading", { name: "Setup Wizard" })).toBeHidden();
await page.locator('[data-tour-id="nav-config"]').click();
await expect(page.getByRole("heading", { name: "Settings" })).toBeVisible();
await page.getByRole("button", { name: "Setup Wizard" }).click();
await expect(page.getByRole("heading", { name: "Setup Wizard" })).toBeVisible();
});
test("shows a create-agent handoff in Assistant when no agents exist yet", async ({ page }) => {
await expect(await openWizard(page)).toBe(true);
await page.getByRole("button", { name: "Dismiss (24h)" }).click();
await expect(page.getByRole("heading", { name: "Setup Wizard" })).toBeHidden();
await page.locator('[data-tour-id="nav-assistant"]').click();
await expect(page.getByRole("heading", { name: "Create an agent first" })).toBeVisible();
await expect(
page.getByText(/Assistant chat needs one configured agent before it can route a message/i)
).toBeVisible();
await expect(page.getByRole("button", { name: "Go to Team" })).toBeVisible();
});
test("keeps onboarding token plaintext only during active entry and does not expose it after setup", async ({
page,
}) => {
await expect(await moveWizardToConnectionStep(page)).toBe(true);
const setupWizard = wizard(page);
const tokenField = setupWizard.getByLabel("Gateway token").first();
await expect(tokenField).toHaveAttribute("type", "text");
await tokenField.fill(TEST_TOKEN);
await expect(tokenField).toHaveValue(TEST_TOKEN);
await completeQuickstartLocalOnboarding(page, { startFromConnectionStep: true });
await expect(page.locator("body")).not.toContainText(TEST_TOKEN);
await page.locator('[data-tour-id="nav-config"]').click();
await page.getByRole("button", { name: "Setup Wizard" }).click();
const reopenedWizard = wizard(page);
await reopenedWizard.getByRole("button", { name: "Continue" }).click();
await reopenedWizard.getByRole("button", { name: "Continue" }).click();
await expect(reopenedWizard.getByText("Step 3 of 6")).toBeVisible();
await expect(reopenedWizard.getByLabel("Gateway token").first()).not.toHaveValue(TEST_TOKEN);
});
test("continues from connect step without manual Save + Connect click", async ({ page }) => {
await expect(await moveWizardToConnectionStep(page)).toBe(true);
const setupWizard = wizard(page);
await setupWizard.getByLabel("Gateway URL").fill(GATEWAY_URL);
await setupWizard.getByLabel("Gateway token").fill(TEST_TOKEN);
await setupWizard.getByRole("button", { name: "Save connection + Continue" }).click();
await expect(setupWizard.getByText("Step 4 of 6")).toBeVisible();
await setupWizard.getByRole("button", { name: "Start new agent" }).click();
await setupWizard.getByText("Advanced agent settings").click();
await setupWizard.getByLabel("Agent ID").fill("assistant-continue");
await setupWizard.getByLabel("Assistant name").fill("Assistant Continue");
await setupWizard.getByRole("radio", { name: "Local connector" }).check();
await setupWizard
.getByRole("combobox", { name: "Assistant model" })
.selectOption(ASSISTANT_MODEL_ID);
await setupWizard.getByRole("button", { name: "Apply setup + Continue" }).click();
await expect(setupWizard.getByText("Step 5 of 6")).toBeVisible();
await expect(
page
.locator(".mc-onboarding-checklist li")
.filter({ hasText: "Connection verified" })
.first()
).toHaveClass(/done/);
});
test("continues after manual Save + Connect even when token input is cleared", async ({ page }) => {
await expect(await moveWizardToConnectionStep(page)).toBe(true);
const setupWizard = wizard(page);
await setupWizard.getByLabel("Gateway URL").fill(GATEWAY_URL);
await setupWizard.getByLabel("Gateway token").fill(TEST_TOKEN);
await setupWizard.getByRole("button", { name: /Save \+ Connect/ }).click();
await expect(setupWizard.getByText(/Connection status:\s*Connected/)).toBeVisible();
await expect(setupWizard.getByLabel("Gateway token")).toHaveValue("");
await setupWizard.getByRole("button", { name: "Save connection + Continue" }).click();
await expect(setupWizard.getByText("Step 4 of 6")).toBeVisible();
});
test("saves a direct Anthropic API key and loads live model choices without hidden account paths", async ({
page,
}) => {
await expect(await moveWizardToConnectionStep(page)).toBe(true);
const setupWizard = wizard(page);
await setupWizard.getByLabel("Gateway URL").fill(GATEWAY_URL);
await setupWizard.getByLabel("Gateway token").fill(TEST_TOKEN);
await setupWizard.getByRole("button", { name: "Save connection + Continue" }).click();
await expect(setupWizard.getByText("Step 4 of 6")).toBeVisible();
await setupWizard.getByRole("button", { name: "Start new agent" }).click();
await setupWizard.getByText("Advanced agent settings").click();
await setupWizard.getByLabel("Agent ID").fill("assistant-claude");
await setupWizard.getByLabel("Assistant name").fill("Claude Assistant");
await setupWizard.getByRole("radio", { name: "Anthropic (Claude)" }).check();
await setupWizard.getByLabel("Profile name").fill("claude-primary");
await setupWizard.getByRole("textbox", { name: "Anthropic API key" }).fill(CLAUDE_API_KEY);
await setupWizard.getByRole("button", { name: "Save key + load models" }).click();
await expect(
setupWizard.getByRole("combobox", { name: "Assistant model" })
).toHaveValue(CLAUDE_MODEL_ID);
await expect(
setupWizard.getByText(/carsinOS already picked .*claude-sonnet-4-5.* for you/i)
).toBeVisible();
await setupWizard.getByRole("button", { name: "Apply setup + Continue" }).click();
await expect(setupWizard.getByText("Step 5 of 6")).toBeVisible();
await setupWizard.getByRole("button", { name: "Finish setup" }).click();
await expect(setupWizard.getByText("Step 6 of 6")).toBeVisible();
});
test("connects via deterministic stub gateway and loads baseline", async ({ page }) => {
await completeQuickstartLocalOnboarding(page);
await expect(page.getByText("Investigate gateway health")).toBeVisible();
await page.locator('[data-tour-id="nav-config"]').click();
await expect(page.getByText(/Gateway:/)).toBeVisible();
await expect(page.getByText(/Live link:/)).toBeVisible();
});
test("uses provider-backed model selectors in Assistant Chat instead of raw model text boxes @core", async ({
page,
}) => {
await completeQuickstartLocalOnboarding(page);
await page.locator('[data-tour-id="nav-assistant"]').click();
await expect(page.getByRole("heading", { name: "Chat", exact: true })).toBeVisible();
await expect(page.getByLabel("Assistant provider")).toHaveValue("ollama");
await expect(page.getByLabel("Assistant model", { exact: true })).toHaveValue(ASSISTANT_MODEL_ID);
await expect(page.getByRole("img", { name: /carsinOS pulls the live model list/i })).toBeVisible();
await expect(page.getByRole("textbox", { name: "Model provider" })).toHaveCount(0);
await expect(page.getByRole("textbox", { name: "Model ID" })).toHaveCount(0);
});
test("enables Strategy and follows linked work back from runtime surfaces @core", async ({
page,
}) => {
await completeQuickstartLocalOnboarding(page);
await clickAdvancedNav(page, "strategy");
await expect(page.getByText("Strategy hub is disabled")).toBeVisible();
await page.locator('[data-tour-id="nav-config"]').click();
await page.getByText("2. Choose what pages show").click();
await page.getByRole("checkbox", { name: "Strategy page" }).check();
await page.keyboard.press("Escape");
await clickAdvancedNav(page, "strategy");
await expect(page.getByTestId("strategy-page")).toBeVisible();
await expect(page.getByRole("heading", { name: "Tasks" })).toBeVisible();
await expect(
page
.locator(".mc-strategy-task-list")
.getByRole("button", { name: /Investigate gateway health/i })
.first()
).toBeVisible();
await page.locator('[data-tour-id="nav-boards"]').click();
await page.locator(".mc-card", { hasText: "Investigate gateway health" }).first().click();
await expect(page.locator(".mc-board-strategy-panel")).toBeVisible();
await page.getByRole("button", { name: "Open in Strategy" }).click();
await expect(page.getByTestId("strategy-page")).toBeVisible();
await expect(page.locator(".mc-strategy-task-row.is-active").first()).toContainText(
"Investigate gateway health"
);
await page.locator('[data-tour-id="nav-calendar"]').click();
await page.getByRole("tab", { name: /Schedule/ }).click();
await expect(page.getByRole("button", { name: "Open task" }).first()).toBeVisible();
await page.getByRole("button", { name: "Open task" }).first().click();
await expect(page.getByTestId("strategy-page")).toBeVisible();
await expect(page.locator(".mc-strategy-task-row.is-active").first()).toContainText(
"Investigate gateway health"
);
await page.locator('[data-tour-id="nav-focus"]').click();
// Focus keeps its last mounted section, so select Queue explicitly.
await page.getByRole("tab", { name: /^Queue/ }).click();
await expect(page.getByRole("button", { name: "Open task" }).first()).toBeVisible();
await page.getByRole("button", { name: "Open task" }).first().click();
await expect(page.getByTestId("strategy-page")).toBeVisible();
await expect(page.locator(".mc-strategy-task-row.is-active").first()).toContainText(
"Investigate gateway health"
);
});
test("reset tab state preserves global connection settings", async ({ page }) => {
await completeQuickstartLocalOnboarding(page);
await page.getByTestId("e2e-crash-active-tab").click();
await page.locator('[data-tour-id="nav-calendar"]').click();
await page.locator('[data-tour-id="nav-boards"]').click();
await expect(page.getByRole("heading", { name: "This tab crashed." })).toBeVisible();
await page.getByRole("button", { name: "Reset tab state" }).click();
await expect(page.getByText("Crash Recovery")).toBeHidden();
await page.locator('[data-tour-id="nav-config"]').click();
await expect(page.getByText(/Gateway:/)).toBeVisible();
await expect(page.getByText(/Live link:/)).toBeVisible();
});
test("recovers from deterministic tab crash through tab boundary retry", async ({ page }) => {
await completeQuickstartLocalOnboarding(page);
await page.getByTestId("e2e-crash-active-tab").click();
await page.locator('[data-tour-id="nav-calendar"]').click();
await page.locator('[data-tour-id="nav-boards"]').click();
const crashAlert = page.getByRole("alert");
await expect(crashAlert.getByText("Crash Recovery")).toBeVisible();
await expect(crashAlert.getByRole("heading", { name: "This tab crashed." })).toBeVisible();
await page.getByRole("button", { name: "Retry" }).click();
await expect(crashAlert).toBeHidden();
await expect(page.getByText("Investigate gateway health")).toBeVisible();
});
test("guided tour walks the elevator floor by floor with explicit progress", async ({ page }) => {
await completeQuickstartLocalOnboarding(page);
const tourBubble = page.locator(".mc-tour-bubble");
await page.locator('[data-tour-id="topbar-tour"]').click();
await expect(page.locator(".mc-tour-progress-chip")).toHaveText("1/7");
await expect(page.getByRole("heading", { name: "4F · The Office" })).toBeVisible();
// The first stop lands in the Office by stable room id, not tab label.
await expect(page.locator('[data-tour-id="nav-assistant"]')).toHaveAttribute(
"aria-current",
"page"
);
await tourBubble.getByRole("button", { name: "Next", exact: true }).click();
await expect(page.locator(".mc-tour-progress-chip")).toHaveText("2/7");
await expect(page.getByRole("heading", { name: "3F · The Window" })).toBeVisible();
await tourBubble.getByRole("button", { name: "Next", exact: true }).click();
await expect(page.locator(".mc-tour-progress-chip")).toHaveText("3/7");
await expect(page.getByRole("heading", { name: "2F · The Trenches" })).toBeVisible();
// Stops on the floor come from the resolved registry: History is off in
// this configuration, so the tour may not advertise it.
await expect(tourBubble).toContainText("Boards");
await expect(tourBubble).not.toContainText("History & Receipts");
await tourBubble.getByRole("button", { name: "Next", exact: true }).click();
await expect(page.locator(".mc-tour-progress-chip")).toHaveText("4/7");
await expect(page.getByRole("heading", { name: "BF · The Basement" })).toBeVisible();
await tourBubble.getByRole("button", { name: "Next", exact: true }).click();
await expect(page.locator(".mc-tour-progress-chip")).toHaveText("5/7");
await expect(page.getByRole("heading", { name: "Help & Docs" })).toBeVisible();
await tourBubble.getByRole("button", { name: "Next", exact: true }).click();
await expect(page.locator(".mc-tour-progress-chip")).toHaveText("6/7");
await expect(page.getByRole("heading", { name: "Config", exact: true })).toBeVisible();
await tourBubble.getByRole("button", { name: "Next", exact: true }).click();
await expect(page.locator(".mc-tour-progress-chip")).toHaveText("7/7");
await expect(page.getByRole("heading", { name: "Command palette" })).toBeVisible();
await tourBubble.getByRole("button", { name: "Finish", exact: true }).click();
await expect(tourBubble).toBeHidden();
});
});