@uniflowed/test 0.0.0-alpha.31 → 0.0.0-alpha.32

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 (2) hide show
  1. package/browser-worker.js +15 -3
  2. package/package.json +2 -2
package/browser-worker.js CHANGED
@@ -71,15 +71,15 @@ type Request = {|
71
71
  *
72
72
  * Generous against a cold Chromium with a cold profile, which is about seven
73
73
  * seconds on a laptop and much worse in a busy container, and deliberately
74
- * *shorter than `uf_test`'s browser file budget* (`BROWSER_FILE_TIMEOUT`, sixty
75
- * seconds).
74
+ * *shorter than `uf_test`'s browser file budget* (`BROWSER_FILE_TIMEOUT`, two
75
+ * minutes).
76
76
  * That order is the whole point: `uf` is already holding a stopwatch on the
77
77
  * first file while this is happening, and whichever of the two fires first is
78
78
  * what the report says. A browser that will not start should be reported as a
79
79
  * browser that will not start, with its own output attached — not as a file
80
80
  * that timed out, which is a sentence about tests that were never reached.
81
81
  */
82
- const START_TIMEOUT_MS = 45_000;
82
+ const START_TIMEOUT_MS = 90_000;
83
83
 
84
84
  /**
85
85
  * The switches a headless run needs, and what each is for.
@@ -119,6 +119,18 @@ function browserArguments(profile: string, url: string): Array<string> {
119
119
  `--user-data-dir=${profile}`,
120
120
  "--no-first-run",
121
121
  "--no-default-browser-check",
122
+ // Keep startup deterministic in CI. These cut services Chrome may start
123
+ // before the first page request: extensions, sync, updater probes, and
124
+ // background network clients such as GCM. None of them changes layout or
125
+ // module execution, which is what browser mode measures.
126
+ "--disable-background-networking",
127
+ "--disable-client-side-phishing-detection",
128
+ "--disable-component-update",
129
+ "--disable-default-apps",
130
+ "--disable-domain-reliability",
131
+ "--disable-extensions",
132
+ "--disable-sync",
133
+ "--metrics-recording-only",
122
134
  // Nothing here paints, and a GPU process is one more thing to fail in a
123
135
  // container.
124
136
  "--disable-gpu",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniflowed/test",
3
- "version": "0.0.0-alpha.31",
3
+ "version": "0.0.0-alpha.32",
4
4
  "description": "The test API and worker for `uf test`: describe/it, a full matcher set, and the process uf fans test files out to.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -26,7 +26,7 @@
26
26
  "!*.test.js"
27
27
  ],
28
28
  "dependencies": {
29
- "@uniflowed/host": "0.0.0-alpha.31"
29
+ "@uniflowed/host": "0.0.0-alpha.32"
30
30
  },
31
31
  "peerDependencies": {
32
32
  "axe-core": ">=4"