@mars-stack/cli 8.0.14 → 8.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -34,13 +34,15 @@ test.describe('Kitchen-sink CLI catalog (MARS-041)', () => {
|
|
|
34
34
|
});
|
|
35
35
|
|
|
36
36
|
test('dark-mode: theme toggle is present and clickable', async ({ page }) => {
|
|
37
|
-
await page
|
|
37
|
+
await signInWithSeededUser(page);
|
|
38
|
+
await page.goto('/dashboard');
|
|
38
39
|
const toggle = page.getByRole('button', { name: /switch to .* theme/i });
|
|
39
40
|
await expect(toggle.first()).toBeVisible();
|
|
40
41
|
await toggle.first().click();
|
|
41
42
|
});
|
|
42
43
|
|
|
43
44
|
test('notifications: bell control is visible', async ({ page }) => {
|
|
45
|
+
await signInWithSeededUser(page);
|
|
44
46
|
await page.goto('/dashboard');
|
|
45
47
|
await expect(page.getByRole('button', { name: /^Notifications/i })).toBeVisible();
|
|
46
48
|
});
|
|
@@ -53,6 +55,7 @@ test.describe('Kitchen-sink CLI catalog (MARS-041)', () => {
|
|
|
53
55
|
});
|
|
54
56
|
|
|
55
57
|
test('command-palette: Ctrl+K opens palette and navigation action works', async ({ page }) => {
|
|
58
|
+
await signInWithSeededUser(page);
|
|
56
59
|
await page.goto('/dashboard');
|
|
57
60
|
await page.keyboard.press('Control+K');
|
|
58
61
|
await expect(page.getByPlaceholder('Type a command or search...')).toBeVisible();
|
|
@@ -72,10 +75,17 @@ test.describe('Kitchen-sink CLI catalog (MARS-041)', () => {
|
|
|
72
75
|
page.getByRole('heading', { name: /welcome! let's get you set up/i }),
|
|
73
76
|
).toBeVisible();
|
|
74
77
|
}
|
|
75
|
-
|
|
78
|
+
for (let i = 0; i < 10 && page.url().includes('/onboarding'); i++) {
|
|
79
|
+
const complete = page.getByRole('button', { name: 'Complete Step' });
|
|
80
|
+
await expect(complete).toBeVisible({ timeout: 30_000 });
|
|
81
|
+
await complete.click();
|
|
82
|
+
await page.waitForURL(/\/dashboard|\/onboarding/, { timeout: 60_000 });
|
|
83
|
+
}
|
|
84
|
+
await expect(page).toHaveURL(/\/dashboard/);
|
|
76
85
|
});
|
|
77
86
|
|
|
78
87
|
test('search: nav search input accepts text (debounce surface)', async ({ page }) => {
|
|
88
|
+
await signInWithSeededUser(page);
|
|
79
89
|
await page.goto('/dashboard');
|
|
80
90
|
const search = page.getByPlaceholder('Search…');
|
|
81
91
|
await expect(search).toBeVisible();
|