fix: correct type errors in test files #2
Annotations
7 errors and 1 notice
|
E2E Tests
Process completed with exit code 1.
|
|
[chromium] › e2e/app.spec.ts:27:7 › Agent Dashboard › should toggle settings panel:
e2e/app.spec.ts#L33
2) [chromium] › e2e/app.spec.ts:27:7 › Agent Dashboard › should toggle settings panel ────────────
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: locator.isVisible: Error: strict mode violation: getByRole('button', { name: /settings/i }).or(locator('[aria-label*="settings" i]')) resolved to 2 elements:
1) <button title="Settings" class="rounded-md p-1.5 text-ink-400 transition-colors hover:bg-paper-300 hover:text-ink-600">…</button> aka getByRole('button', { name: 'Settings', exact: true })
2) <button title="Add GitHub token in settings" class="rounded-md p-1.5 transition-colors disabled:cursor-not-allowed disabled:opacity-50 text-ink-300 opacity-50">…</button> aka getByRole('button', { name: 'Add GitHub token in settings' })
Call log:
- checking visibility of getByRole('button', { name: /settings/i }).or(locator('[aria-label*="settings" i]'))
31 | .or(page.locator('[aria-label*="settings" i]'));
32 |
> 33 | if (await settingsButton.isVisible()) {
| ^
34 | await settingsButton.click();
35 | // Settings panel should appear
36 | await expect(
at /home/runner/work/max/max/e2e/app.spec.ts:33:30
|
|
[chromium] › e2e/app.spec.ts:27:7 › Agent Dashboard › should toggle settings panel:
e2e/app.spec.ts#L33
2) [chromium] › e2e/app.spec.ts:27:7 › Agent Dashboard › should toggle settings panel ────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: locator.isVisible: Error: strict mode violation: getByRole('button', { name: /settings/i }).or(locator('[aria-label*="settings" i]')) resolved to 2 elements:
1) <button title="Settings" class="rounded-md p-1.5 text-ink-400 transition-colors hover:bg-paper-300 hover:text-ink-600">…</button> aka getByRole('button', { name: 'Settings', exact: true })
2) <button title="Add GitHub token in settings" class="rounded-md p-1.5 transition-colors disabled:cursor-not-allowed disabled:opacity-50 text-ink-300 opacity-50">…</button> aka getByRole('button', { name: 'Add GitHub token in settings' })
Call log:
- checking visibility of getByRole('button', { name: /settings/i }).or(locator('[aria-label*="settings" i]'))
31 | .or(page.locator('[aria-label*="settings" i]'));
32 |
> 33 | if (await settingsButton.isVisible()) {
| ^
34 | await settingsButton.click();
35 | // Settings panel should appear
36 | await expect(
at /home/runner/work/max/max/e2e/app.spec.ts:33:30
|
|
[chromium] › e2e/app.spec.ts:27:7 › Agent Dashboard › should toggle settings panel:
e2e/app.spec.ts#L33
2) [chromium] › e2e/app.spec.ts:27:7 › Agent Dashboard › should toggle settings panel ────────────
Error: locator.isVisible: Error: strict mode violation: getByRole('button', { name: /settings/i }).or(locator('[aria-label*="settings" i]')) resolved to 2 elements:
1) <button title="Settings" class="rounded-md p-1.5 text-ink-400 transition-colors hover:bg-paper-300 hover:text-ink-600">…</button> aka getByRole('button', { name: 'Settings', exact: true })
2) <button title="Add GitHub token in settings" class="rounded-md p-1.5 transition-colors disabled:cursor-not-allowed disabled:opacity-50 text-ink-300 opacity-50">…</button> aka getByRole('button', { name: 'Add GitHub token in settings' })
Call log:
- checking visibility of getByRole('button', { name: /settings/i }).or(locator('[aria-label*="settings" i]'))
31 | .or(page.locator('[aria-label*="settings" i]'));
32 |
> 33 | if (await settingsButton.isVisible()) {
| ^
34 | await settingsButton.click();
35 | // Settings panel should appear
36 | await expect(
at /home/runner/work/max/max/e2e/app.spec.ts:33:30
|
|
[chromium] › e2e/app.spec.ts:13:7 › Agent Dashboard › should display message input:
e2e/app.spec.ts#L16
1) [chromium] › e2e/app.spec.ts:13:7 › Agent Dashboard › should display message input ────────────
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(locator).toBeVisible() failed
Locator: getByPlaceholder(/message|type|send/i)
Expected: visible
Timeout: 5000ms
Error: element(s) not found
Call log:
- Expect "toBeVisible" with timeout 5000ms
- waiting for getByPlaceholder(/message|type|send/i)
14 | // Check for the message input field
15 | const messageInput = page.getByPlaceholder(/message|type|send/i);
> 16 | await expect(messageInput).toBeVisible();
| ^
17 | });
18 |
19 | test("should have activity panel", async ({ page }) => {
at /home/runner/work/max/max/e2e/app.spec.ts:16:32
|
|
[chromium] › e2e/app.spec.ts:13:7 › Agent Dashboard › should display message input:
e2e/app.spec.ts#L16
1) [chromium] › e2e/app.spec.ts:13:7 › Agent Dashboard › should display message input ────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(locator).toBeVisible() failed
Locator: getByPlaceholder(/message|type|send/i)
Expected: visible
Timeout: 5000ms
Error: element(s) not found
Call log:
- Expect "toBeVisible" with timeout 5000ms
- waiting for getByPlaceholder(/message|type|send/i)
14 | // Check for the message input field
15 | const messageInput = page.getByPlaceholder(/message|type|send/i);
> 16 | await expect(messageInput).toBeVisible();
| ^
17 | });
18 |
19 | test("should have activity panel", async ({ page }) => {
at /home/runner/work/max/max/e2e/app.spec.ts:16:32
|
|
[chromium] › e2e/app.spec.ts:13:7 › Agent Dashboard › should display message input:
e2e/app.spec.ts#L16
1) [chromium] › e2e/app.spec.ts:13:7 › Agent Dashboard › should display message input ────────────
Error: expect(locator).toBeVisible() failed
Locator: getByPlaceholder(/message|type|send/i)
Expected: visible
Timeout: 5000ms
Error: element(s) not found
Call log:
- Expect "toBeVisible" with timeout 5000ms
- waiting for getByPlaceholder(/message|type|send/i)
14 | // Check for the message input field
15 | const messageInput = page.getByPlaceholder(/message|type|send/i);
> 16 | await expect(messageInput).toBeVisible();
| ^
17 | });
18 |
19 | test("should have activity panel", async ({ page }) => {
at /home/runner/work/max/max/e2e/app.spec.ts:16:32
|
|
🎭 Playwright Run Summary
2 failed
[chromium] › e2e/app.spec.ts:13:7 › Agent Dashboard › should display message input ─────────────
[chromium] › e2e/app.spec.ts:27:7 › Agent Dashboard › should toggle settings panel ─────────────
12 passed (26.9s)
|