@empiricalrun/playwright-utils 0.61.3 → 0.62.0

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.
Files changed (29) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/generated/api-worker-openapi.d.ts +178 -0
  3. package/dist/generated/api-worker-openapi.d.ts.map +1 -1
  4. package/dist/test/expect/visual.d.ts.map +1 -1
  5. package/dist/test/expect/visual.js +0 -7
  6. package/dist/test/index.d.ts.map +1 -1
  7. package/dist/test/index.js +10 -8
  8. package/dist/test/scripts/index.d.ts.map +1 -1
  9. package/dist/test/scripts/index.js +1 -6
  10. package/dist/test/scripts/pw-locator-patch/highlight/expect.js +1 -1
  11. package/dist/test/scripts/pw-locator-patch/highlight/hover.d.ts.map +1 -1
  12. package/dist/test/scripts/pw-locator-patch/highlight/hover.js +0 -1
  13. package/dist/test/scripts/pw-locator-patch/highlight/inner-text.js +1 -1
  14. package/dist/test/scripts/pw-locator-patch/highlight/input-value.js +1 -1
  15. package/dist/test/scripts/pw-locator-patch/highlight/is-checked.js +1 -1
  16. package/dist/test/scripts/pw-locator-patch/highlight/is-disabled.js +1 -1
  17. package/dist/test/scripts/pw-locator-patch/highlight/is-editable.js +1 -1
  18. package/dist/test/scripts/pw-locator-patch/highlight/text-content.js +1 -1
  19. package/dist/test/scripts/pw-locator-patch/utils/index.d.ts +1 -2
  20. package/dist/test/scripts/pw-locator-patch/utils/index.d.ts.map +1 -1
  21. package/dist/test/scripts/pw-locator-patch/utils/index.js +3 -25
  22. package/dist/test/types.d.ts +1 -0
  23. package/dist/test/types.d.ts.map +1 -1
  24. package/docs/fixtures.md +10 -8
  25. package/package.json +1 -1
  26. package/tsconfig.tsbuildinfo +1 -1
  27. package/dist/test/scripts/mouse-pointer.d.ts +0 -5
  28. package/dist/test/scripts/mouse-pointer.d.ts.map +0 -1
  29. package/dist/test/scripts/mouse-pointer.js +0 -125
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @empiricalrun/playwright-utils
2
2
 
3
+ ## 0.62.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 771fafd: Use Playwright's built-in video action annotations instead of the injected mouse pointer highlighter
8
+
3
9
  ## 0.61.3
4
10
 
5
11
  ### Patch Changes
@@ -1985,6 +1985,26 @@ export interface paths {
1985
1985
  patch: operations["updateApiKey"];
1986
1986
  trace?: never;
1987
1987
  };
1988
+ "/api/banners": {
1989
+ parameters: {
1990
+ query?: never;
1991
+ header?: never;
1992
+ path?: never;
1993
+ cookie?: never;
1994
+ };
1995
+ /**
1996
+ * 🛡️ List the dashboard's warning banners
1997
+ * @description The warnings shown at the top of the dashboard for the scoped project's org (unpaid invoices, failed renewal, usage limit, no plan, Jira and Slack reconnects). Reads stored state only, so it is cheap enough to call while server-rendering a page.
1998
+ */
1999
+ get: operations["listDashboardBanners"];
2000
+ put?: never;
2001
+ post?: never;
2002
+ delete?: never;
2003
+ options?: never;
2004
+ head?: never;
2005
+ patch?: never;
2006
+ trace?: never;
2007
+ };
1988
2008
  "/api/billing/month-summary": {
1989
2009
  parameters: {
1990
2010
  query?: never;
@@ -6976,6 +6996,135 @@ export interface components {
6976
6996
  }[];
6977
6997
  };
6978
6998
  };
6999
+ DashboardBannersResponse: {
7000
+ /** @description Response payload. */
7001
+ data: {
7002
+ /** @description Active banners, highest priority first. */
7003
+ banners: components["schemas"]["DashboardBanner"][];
7004
+ };
7005
+ };
7006
+ DashboardBanner: {
7007
+ /** @enum {string} */
7008
+ kind: "unpaid_invoices";
7009
+ params: {
7010
+ /** @description Sent invoices still unpaid at least a day past their due date. */
7011
+ overdue_count: number;
7012
+ /** @description How many of those are past the billing gate's overdue threshold. */
7013
+ escalated_count: number;
7014
+ };
7015
+ /** @description Higher shows first; the dashboard shows one at a time. */
7016
+ priority: number;
7017
+ /** @description Null when the banner can't be dismissed. */
7018
+ dismissal: {
7019
+ /** @description Stable for the fact the banner is about; a new fact (period, limit, missing scopes) makes a new key. */
7020
+ key: string;
7021
+ /** @description How long a dismissal lasts; null means until the key changes. */
7022
+ ttl_seconds: number | null;
7023
+ } | null;
7024
+ desktop_only: boolean;
7025
+ } | {
7026
+ /** @enum {string} */
7027
+ kind: "renewal_failed";
7028
+ params: Record<string, never>;
7029
+ /** @description Higher shows first; the dashboard shows one at a time. */
7030
+ priority: number;
7031
+ /** @description Null when the banner can't be dismissed. */
7032
+ dismissal: {
7033
+ /** @description Stable for the fact the banner is about; a new fact (period, limit, missing scopes) makes a new key. */
7034
+ key: string;
7035
+ /** @description How long a dismissal lasts; null means until the key changes. */
7036
+ ttl_seconds: number | null;
7037
+ } | null;
7038
+ desktop_only: boolean;
7039
+ } | {
7040
+ /** @enum {string} */
7041
+ kind: "usage_limit_reached";
7042
+ params: {
7043
+ /** @description The limit as a bill: plan price + cap. */
7044
+ limit_bill_cents: number;
7045
+ };
7046
+ /** @description Higher shows first; the dashboard shows one at a time. */
7047
+ priority: number;
7048
+ /** @description Null when the banner can't be dismissed. */
7049
+ dismissal: {
7050
+ /** @description Stable for the fact the banner is about; a new fact (period, limit, missing scopes) makes a new key. */
7051
+ key: string;
7052
+ /** @description How long a dismissal lasts; null means until the key changes. */
7053
+ ttl_seconds: number | null;
7054
+ } | null;
7055
+ desktop_only: boolean;
7056
+ } | {
7057
+ /** @enum {string} */
7058
+ kind: "usage_limit_warning";
7059
+ params: {
7060
+ /** @description Plan price + overage so far, as last evaluated. */
7061
+ bill_cents: number;
7062
+ /** @description The limit as a bill: plan price + cap. */
7063
+ limit_bill_cents: number;
7064
+ /** @enum {string} */
7065
+ period_kind: "month" | "cycle";
7066
+ period_start: string;
7067
+ /** @description Exclusive (ISO 8601). */
7068
+ period_end: string;
7069
+ };
7070
+ /** @description Higher shows first; the dashboard shows one at a time. */
7071
+ priority: number;
7072
+ /** @description Null when the banner can't be dismissed. */
7073
+ dismissal: {
7074
+ /** @description Stable for the fact the banner is about; a new fact (period, limit, missing scopes) makes a new key. */
7075
+ key: string;
7076
+ /** @description How long a dismissal lasts; null means until the key changes. */
7077
+ ttl_seconds: number | null;
7078
+ } | null;
7079
+ desktop_only: boolean;
7080
+ } | {
7081
+ /** @enum {string} */
7082
+ kind: "jira_reauthorization";
7083
+ params: {
7084
+ installation_id: number;
7085
+ };
7086
+ /** @description Higher shows first; the dashboard shows one at a time. */
7087
+ priority: number;
7088
+ /** @description Null when the banner can't be dismissed. */
7089
+ dismissal: {
7090
+ /** @description Stable for the fact the banner is about; a new fact (period, limit, missing scopes) makes a new key. */
7091
+ key: string;
7092
+ /** @description How long a dismissal lasts; null means until the key changes. */
7093
+ ttl_seconds: number | null;
7094
+ } | null;
7095
+ desktop_only: boolean;
7096
+ } | {
7097
+ /** @enum {string} */
7098
+ kind: "slack_permissions";
7099
+ params: {
7100
+ team_id: string;
7101
+ missing_scopes: string[];
7102
+ };
7103
+ /** @description Higher shows first; the dashboard shows one at a time. */
7104
+ priority: number;
7105
+ /** @description Null when the banner can't be dismissed. */
7106
+ dismissal: {
7107
+ /** @description Stable for the fact the banner is about; a new fact (period, limit, missing scopes) makes a new key. */
7108
+ key: string;
7109
+ /** @description How long a dismissal lasts; null means until the key changes. */
7110
+ ttl_seconds: number | null;
7111
+ } | null;
7112
+ desktop_only: boolean;
7113
+ } | {
7114
+ /** @enum {string} */
7115
+ kind: "no_billing_plan";
7116
+ params: Record<string, never>;
7117
+ /** @description Higher shows first; the dashboard shows one at a time. */
7118
+ priority: number;
7119
+ /** @description Null when the banner can't be dismissed. */
7120
+ dismissal: {
7121
+ /** @description Stable for the fact the banner is about; a new fact (period, limit, missing scopes) makes a new key. */
7122
+ key: string;
7123
+ /** @description How long a dismissal lasts; null means until the key changes. */
7124
+ ttl_seconds: number | null;
7125
+ } | null;
7126
+ desktop_only: boolean;
7127
+ };
6979
7128
  ClaimRunnerBackendResponse: {
6980
7129
  /** @description Response payload. */
6981
7130
  data: {
@@ -20024,6 +20173,35 @@ export interface operations {
20024
20173
  };
20025
20174
  };
20026
20175
  };
20176
+ listDashboardBanners: {
20177
+ parameters: {
20178
+ query?: never;
20179
+ header?: never;
20180
+ path?: never;
20181
+ cookie?: never;
20182
+ };
20183
+ requestBody?: never;
20184
+ responses: {
20185
+ /** @description Active banners. */
20186
+ 200: {
20187
+ headers: {
20188
+ [name: string]: unknown;
20189
+ };
20190
+ content: {
20191
+ "application/json": components["schemas"]["DashboardBannersResponse"];
20192
+ };
20193
+ };
20194
+ /** @description Missing project scope. */
20195
+ 400: {
20196
+ headers: {
20197
+ [name: string]: unknown;
20198
+ };
20199
+ content: {
20200
+ "application/json": components["schemas"]["ErrorResponse"];
20201
+ };
20202
+ };
20203
+ };
20204
+ };
20027
20205
  getBillingMonthSummary: {
20028
20206
  parameters: {
20029
20207
  query?: {