2026-03-09 19:16:43 -07:00
|
|
|
import { defineConfig, devices } from "@playwright/test";
|
|
|
|
|
|
|
|
|
|
export default defineConfig({
|
|
|
|
|
testDir: "./tests/e2e",
|
|
|
|
|
timeout: 30_000,
|
|
|
|
|
retries: process.env.CI ? 2 : 0,
|
|
|
|
|
workers: 1,
|
|
|
|
|
reporter: [
|
|
|
|
|
["list"],
|
|
|
|
|
["html", { open: "never", outputFolder: "playwright-report" }],
|
|
|
|
|
],
|
|
|
|
|
use: {
|
|
|
|
|
baseURL: "http://127.0.0.1:4173",
|
|
|
|
|
screenshot: "only-on-failure",
|
|
|
|
|
trace: "on-first-retry",
|
|
|
|
|
video: "retain-on-failure",
|
|
|
|
|
},
|
|
|
|
|
projects: [
|
|
|
|
|
{
|
|
|
|
|
name: "smoke",
|
2026-03-10 17:44:39 -04:00
|
|
|
testMatch: [
|
|
|
|
|
"**/smoke.spec.ts",
|
2026-08-15 10:49:41 -04:00
|
|
|
"**/sidebar-offcanvas-rail.spec.ts",
|
2026-08-11 19:11:57 +01:00
|
|
|
"**/search-scope-screenshots.spec.ts",
|
2026-07-16 20:34:30 -07:00
|
|
|
"**/onboarding-docked-cta-screenshots.spec.ts",
|
2026-07-18 08:45:41 -07:00
|
|
|
"**/identity-key-help.spec.ts",
|
|
|
|
|
"**/key-import-reveal.spec.ts",
|
2026-06-16 23:37:09 -07:00
|
|
|
"**/navigation.spec.ts",
|
2026-03-10 17:44:39 -04:00
|
|
|
"**/channels.spec.ts",
|
2026-06-29 09:42:31 -04:00
|
|
|
"**/channel-shared-header-backdrop.spec.ts",
|
2026-07-20 13:37:35 +02:00
|
|
|
"**/channel-composer-overflow.spec.ts",
|
2026-06-03 21:16:49 -04:00
|
|
|
"**/badge.spec.ts",
|
2026-03-12 12:53:59 -07:00
|
|
|
"**/channel-browser.spec.ts",
|
2026-07-16 14:01:53 -04:00
|
|
|
"**/channel-add-screenshots.spec.ts",
|
2026-07-25 03:30:33 +01:00
|
|
|
"**/add-community-screenshots.spec.ts",
|
|
|
|
|
"**/hosted-communities-settings-screenshots.spec.ts",
|
|
|
|
|
"**/invites-settings-screenshots.spec.ts",
|
2026-03-10 17:44:39 -04:00
|
|
|
"**/messaging.spec.ts",
|
2026-07-30 15:46:56 +01:00
|
|
|
"**/message-feedback-snapshots.spec.ts",
|
2026-06-02 14:19:07 -07:00
|
|
|
"**/custom-emoji.spec.ts",
|
2026-06-05 09:26:13 -07:00
|
|
|
"**/profile-custom-emoji-status.spec.ts",
|
2026-06-25 09:25:34 -07:00
|
|
|
"**/custom-emoji-ui.spec.ts",
|
|
|
|
|
"**/channel-mute.spec.ts",
|
|
|
|
|
"**/channel-star.spec.ts",
|
|
|
|
|
"**/channel-controls.spec.ts",
|
2026-08-03 17:26:06 +01:00
|
|
|
"**/channel-activity-popover.spec.ts",
|
2026-06-25 09:25:34 -07:00
|
|
|
"**/active-turn-resilience.spec.ts",
|
|
|
|
|
"**/profile-active-turn.spec.ts",
|
2026-06-29 16:51:32 -04:00
|
|
|
"**/config-bridge-screenshots.spec.ts",
|
2026-07-01 16:33:26 -04:00
|
|
|
"**/observer-feed-screenshots.spec.ts",
|
2026-07-11 13:40:16 -04:00
|
|
|
"**/core-memory-screenshots.spec.ts",
|
2026-07-06 20:59:23 -07:00
|
|
|
"**/activity-scope-label-screenshots.spec.ts",
|
2026-07-15 09:24:57 -07:00
|
|
|
"**/welcome-agent-modal-screenshots.spec.ts",
|
2026-07-06 17:41:56 -04:00
|
|
|
"**/local-archive-screenshots.spec.ts",
|
2026-07-31 09:41:09 -04:00
|
|
|
"**/voice-settings.spec.ts",
|
2026-07-06 18:23:38 -04:00
|
|
|
"**/agent-readiness-screenshots.spec.ts",
|
2026-07-08 17:32:48 -04:00
|
|
|
"**/agent-error-state-screenshots.spec.ts",
|
2026-07-08 08:04:44 -06:00
|
|
|
"**/edit-agent.spec.ts",
|
2026-07-08 16:00:03 -04:00
|
|
|
"**/doctor-cta-screenshots.spec.ts",
|
2026-07-07 14:35:15 -06:00
|
|
|
"**/pubkey-display-screenshots.spec.ts",
|
2026-06-01 12:57:04 -07:00
|
|
|
"**/file-attachment.spec.ts",
|
2026-06-29 14:30:15 +01:00
|
|
|
"**/image-attachment-gallery.spec.ts",
|
2026-07-06 16:36:01 -07:00
|
|
|
"**/composer-image-draw.spec.ts",
|
2026-06-11 23:21:54 +01:00
|
|
|
"**/video-attachment.spec.ts",
|
2026-06-16 08:01:57 +01:00
|
|
|
"**/spoiler.spec.ts",
|
2026-07-08 10:24:17 -07:00
|
|
|
"**/composer-link-shortcut.spec.ts",
|
2026-08-10 18:38:38 -07:00
|
|
|
"**/entity-link-recipient-cards.spec.ts",
|
2026-07-27 21:39:44 +01:00
|
|
|
"**/composer-selection-formatting.spec.ts",
|
2026-07-06 16:36:01 -07:00
|
|
|
"**/composer-tooltip-dismiss.spec.ts",
|
2026-03-12 16:41:20 -07:00
|
|
|
"**/mentions.spec.ts",
|
2026-07-15 17:39:39 -05:00
|
|
|
"**/team-mentions.spec.ts",
|
2026-07-16 10:25:44 -07:00
|
|
|
"**/persistent-agent-audience.spec.ts",
|
2026-05-21 12:56:12 -04:00
|
|
|
"**/relay-reconnect.spec.ts",
|
2026-06-25 09:25:34 -07:00
|
|
|
"**/relay-reconnect-affordance.spec.ts",
|
2026-04-03 18:41:31 -07:00
|
|
|
"**/workflows.spec.ts",
|
2026-05-23 12:03:38 -04:00
|
|
|
"**/identity-archive.spec.ts",
|
2026-05-23 13:58:01 -04:00
|
|
|
"**/identity-archive-hide.spec.ts",
|
2026-06-25 09:25:34 -07:00
|
|
|
"**/relay-connectivity.spec.ts",
|
|
|
|
|
"**/unread-pill.spec.ts",
|
2026-06-19 10:12:42 -04:00
|
|
|
"**/sidebar-more-unread-overlap.spec.ts",
|
2026-08-12 15:23:41 -06:00
|
|
|
"**/sidebar-snapshot.spec.ts",
|
2026-06-25 09:25:34 -07:00
|
|
|
"**/home-collapsed-top-chrome.spec.ts",
|
2026-07-05 09:37:16 -07:00
|
|
|
"**/top-chrome-zoom-clearance.spec.ts",
|
2026-06-25 09:25:34 -07:00
|
|
|
"**/thread-unread.spec.ts",
|
2026-07-23 15:52:25 -07:00
|
|
|
"**/workspace-rail.spec.ts",
|
2026-07-23 13:28:53 -04:00
|
|
|
"**/community-rail.spec.ts",
|
2026-07-08 18:25:03 +01:00
|
|
|
"**/boot-splash.spec.ts",
|
2026-06-25 09:40:26 -07:00
|
|
|
"**/thread-reply-anchor-roleplay.spec.ts",
|
2026-06-30 18:55:08 -04:00
|
|
|
"**/threadpane-ultrawide.spec.ts",
|
2026-07-19 08:55:39 -07:00
|
|
|
"**/thread-focus-mode.spec.ts",
|
2026-06-25 09:25:34 -07:00
|
|
|
"**/animated-avatar.spec.ts",
|
|
|
|
|
"**/reminders.spec.ts",
|
2026-07-16 00:34:50 +10:00
|
|
|
"**/reminder-click-repro.spec.ts",
|
2026-06-25 09:25:34 -07:00
|
|
|
"**/virtualization.spec.ts",
|
2026-06-18 20:40:05 -04:00
|
|
|
"**/scroll-history.spec.ts",
|
2026-07-02 10:36:11 -04:00
|
|
|
"**/channel-dense-second-reach.spec.ts",
|
2026-07-04 11:51:58 -04:00
|
|
|
"**/channel-window-mock-paging.spec.ts",
|
|
|
|
|
"**/live-broadcast-reply-timeline.spec.ts",
|
2026-07-08 22:38:52 +01:00
|
|
|
"**/markdown-parse-cache.spec.ts",
|
2026-06-30 10:58:57 -04:00
|
|
|
"**/overscroll-boundary.spec.ts",
|
2026-08-03 21:51:17 -04:00
|
|
|
"**/terminal-wheel.spec.ts",
|
2026-06-29 08:56:48 -06:00
|
|
|
"**/cold-switch-longtask.perf.ts",
|
|
|
|
|
"**/timeline-no-shift.spec.ts",
|
2026-06-30 18:31:47 -04:00
|
|
|
"**/human-edit-agent-content.spec.ts",
|
2026-07-30 22:34:12 -07:00
|
|
|
"**/empty-edit-delete.spec.ts",
|
2026-07-01 14:28:58 -04:00
|
|
|
"**/reaction-order.spec.ts",
|
2026-07-07 11:19:49 -04:00
|
|
|
"**/reaction-names.spec.ts",
|
2026-07-07 13:29:56 -06:00
|
|
|
"**/inbox-reactions.spec.ts",
|
2026-08-05 16:00:23 -07:00
|
|
|
"**/inbox-edit.spec.ts",
|
2026-07-02 16:15:44 -04:00
|
|
|
"**/send-channel-binding.spec.ts",
|
2026-07-07 17:29:29 +02:00
|
|
|
"**/project-commit-detail.spec.ts",
|
2026-07-27 16:14:22 +02:00
|
|
|
"**/project-inbox.spec.ts",
|
2026-08-14 16:48:41 -04:00
|
|
|
"**/projects-v3-screenshots.spec.ts",
|
2026-08-04 23:30:12 +02:00
|
|
|
"**/project-issue-comments.spec.ts",
|
2026-07-09 18:24:19 +02:00
|
|
|
"**/project-pr-review.spec.ts",
|
2026-07-06 15:01:09 -04:00
|
|
|
"**/persona-model-combobox-screenshots.spec.ts",
|
2026-07-06 17:40:57 -04:00
|
|
|
"**/drafts-screenshots.spec.ts",
|
2026-07-28 20:37:12 +02:00
|
|
|
"**/drafts-all-fix-screenshots.spec.ts",
|
2026-07-27 16:45:34 -04:00
|
|
|
"**/inbox-refactor-screenshots.spec.ts",
|
2026-07-08 15:22:50 +01:00
|
|
|
"**/buzz-theme-screenshots.spec.ts",
|
2026-07-06 16:31:22 -07:00
|
|
|
"**/channel-sort.spec.ts",
|
2026-07-09 17:58:36 -04:00
|
|
|
"**/identity-lost.spec.ts",
|
2026-07-17 00:42:48 +10:00
|
|
|
"**/deep-link-invite.spec.ts",
|
2026-07-25 03:30:33 +01:00
|
|
|
"**/invite-link-copy.spec.ts",
|
2026-07-10 13:38:33 -04:00
|
|
|
"**/global-agent-config-screenshots.spec.ts",
|
2026-07-12 17:42:35 -04:00
|
|
|
"**/doctor-states.spec.ts",
|
2026-07-12 18:46:02 -04:00
|
|
|
"**/onboarding-avatar-skip.spec.ts",
|
|
|
|
|
"**/onboarding-backup.spec.ts",
|
|
|
|
|
"**/onboarding-agent-defaults.spec.ts",
|
2026-07-15 16:30:28 +01:00
|
|
|
"**/nostr-bind.spec.ts",
|
2026-07-25 03:46:59 +01:00
|
|
|
"**/mobile-pairing-qr.spec.ts",
|
2026-07-12 18:46:02 -04:00
|
|
|
"**/profile-nsec-reveal.spec.ts",
|
2026-07-30 11:15:39 -07:00
|
|
|
"**/profile-backup-settings.spec.ts",
|
2026-07-22 16:38:52 -06:00
|
|
|
"**/signout-confirmation.spec.ts",
|
2026-08-14 16:25:40 +01:00
|
|
|
"**/settings-section-layout.spec.ts",
|
2026-07-12 18:23:27 -04:00
|
|
|
"**/agent-provider-dropdowns.spec.ts",
|
2026-07-12 18:46:02 -04:00
|
|
|
"**/agent-lifecycle-feedback.spec.ts",
|
2026-07-30 09:32:40 -04:00
|
|
|
"**/agent-access-warning.spec.ts",
|
2026-08-03 12:08:29 -04:00
|
|
|
"**/edit-agent-run-on.spec.ts",
|
2026-07-12 19:44:49 -04:00
|
|
|
"**/inbox-live-update.spec.ts",
|
2026-07-16 00:10:29 +10:00
|
|
|
"**/mesh-compute.spec.ts",
|
2026-07-16 15:47:35 -04:00
|
|
|
"**/observer-archive-policy.spec.ts",
|
2026-07-26 17:06:20 -07:00
|
|
|
"**/harness-management.spec.ts",
|
2026-07-27 11:01:42 -07:00
|
|
|
"**/harness-catalog-screenshots.spec.ts",
|
2026-07-28 16:01:41 -04:00
|
|
|
"**/inline-custom-harness.spec.ts",
|
2026-08-03 07:36:13 -04:00
|
|
|
"**/where-to-run-config.spec.ts",
|
2026-07-31 07:06:41 -04:00
|
|
|
"**/huddle-transcription.spec.ts",
|
2026-08-03 18:09:24 -04:00
|
|
|
"**/agent-numeric-tuning.spec.ts",
|
2026-08-04 12:21:59 -04:00
|
|
|
"**/needs-restart-screenshots.spec.ts",
|
2026-03-10 17:44:39 -04:00
|
|
|
],
|
2026-03-09 19:16:43 -07:00
|
|
|
use: {
|
|
|
|
|
...devices["Desktop Chrome"],
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: "integration",
|
2026-03-10 17:56:17 -07:00
|
|
|
testMatch: [
|
2026-04-08 21:04:09 -07:00
|
|
|
"**/agents.spec.ts",
|
2026-07-12 19:30:21 -04:00
|
|
|
"**/agent-snapshot-recipient.spec.ts",
|
2026-04-22 15:06:35 -06:00
|
|
|
"**/onboarding.spec.ts",
|
2026-03-10 17:56:17 -07:00
|
|
|
"**/stream.spec.ts",
|
|
|
|
|
"**/integration.spec.ts",
|
2026-07-18 23:16:00 -04:00
|
|
|
"**/dm-double-notification.spec.ts",
|
2026-03-10 17:56:17 -07:00
|
|
|
"**/profile.spec.ts",
|
2026-06-05 22:00:37 +01:00
|
|
|
"**/sidebar.spec.ts",
|
2026-06-17 18:48:35 +01:00
|
|
|
"**/sidebar-relay-card.spec.ts",
|
2026-03-12 10:21:11 -07:00
|
|
|
"**/tokens.spec.ts",
|
2026-05-15 10:43:00 -04:00
|
|
|
"**/persona-env-vars.spec.ts",
|
2026-06-25 14:10:06 -04:00
|
|
|
"**/persona-sync.spec.ts",
|
2026-07-14 17:10:51 -04:00
|
|
|
"**/team-snapshot.spec.ts",
|
2026-07-22 13:24:46 -07:00
|
|
|
"**/agents-everywhere.live.spec.ts",
|
2026-07-23 13:18:08 -07:00
|
|
|
"**/relay-restart.live.spec.ts",
|
2026-07-04 11:51:58 -04:00
|
|
|
"**/parity-ancestor-island.spec.ts",
|
2026-03-10 17:56:17 -07:00
|
|
|
],
|
2026-03-09 19:16:43 -07:00
|
|
|
use: {
|
|
|
|
|
...devices["Desktop Chrome"],
|
|
|
|
|
},
|
2026-06-01 18:48:37 -04:00
|
|
|
expect: {
|
|
|
|
|
timeout: process.env.CI ? 15_000 : 10_000,
|
|
|
|
|
},
|
2026-03-09 19:16:43 -07:00
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
webServer: {
|
|
|
|
|
command: "python3 -m http.server 4173 -d dist",
|
|
|
|
|
cwd: ".",
|
|
|
|
|
reuseExistingServer: !process.env.CI,
|
|
|
|
|
url: "http://127.0.0.1:4173",
|
|
|
|
|
},
|
|
|
|
|
});
|