mirror of
https://github.com/garrytan/gstack.git
synced 2026-11-01 06:24:41 +01:00
E8: count the BROWSE_EXTENSIONS_DIR persistent launch in the signal-flags guard
The new launch site carries handleSIGINT/SIGTERM/SIGHUP false like the other three, so the guard's expected count moves from 3 to 4.
This commit is contained in:
1 parent
ae86d10f40
commit
10eac648ba
1 file changed
+5
-4
@@ -51,10 +51,11 @@ describe('Playwright launch sites disable signal handlers (#2220)', () => {
|
||||
const src = SRC('browser-manager.ts');
|
||||
const launchCount = expectSignalFlagsNearEvery(src, 'chromium.launch({');
|
||||
const persistentCount = expectSignalFlagsNearEvery(src, 'chromium.launchPersistentContext(');
|
||||
// Three launch sites today: headless launch(), headed launchHeaded(),
|
||||
// and the handoff relaunch. A NEW launch site must carry the flags too —
|
||||
// bump this only after adding them.
|
||||
expect(launchCount + persistentCount).toBe(3);
|
||||
// Four launch sites today: headless launch(), its BROWSE_EXTENSIONS_DIR
|
||||
// persistent context (#2281), headed launchHeaded(), and the handoff
|
||||
// relaunch. A NEW launch site must carry the flags too — bump this only
|
||||
// after adding them.
|
||||
expect(launchCount + persistentCount).toBe(4);
|
||||
});
|
||||
|
||||
test('server.ts owns SIGHUP cleanup now that Playwright does not (ENG-OV4)', () => {
|
||||
|
||||
Reference in new issue
Block a user