mirror of
https://github.com/garrytan/gstack.git
synced 2026-10-31 22:14:25 +01:00
test(playwright-patch): read the 1.62.1 backport patch by literal path so pregate maps the patch to its test
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
973d7e3ba9
commit
a59e362066
1 file changed
+2
-3
@@ -63,11 +63,10 @@ describe('playwright-core windowsHide patch (#2160, #1989)', () => {
|
||||
|
||||
// Windows Free Tests 40656299153 and 41056150287 (cookie-picker-ui, serial retry passed): goto failed with
|
||||
// net::ERR_NO_BUFFER_SPACE on 127.0.0.1. Chromium's TcpPortRandomizationWin raises WSAENOBUFS with ports free;
|
||||
// microsoft/playwright#43605 disables it in 1.65, and the patch backports that to the pinned version.
|
||||
// microsoft/playwright#43605 disables it in 1.65, and the 1.62.1 patch backports it; drop this block at 1.65.
|
||||
describe('playwright-core TcpPortRandomizationWin backport (microsoft/playwright#43605)', () => {
|
||||
test('the patch and the installed tree disable the feature in the --disable-features list', () => {
|
||||
const version = installedPlaywrightCoreVersion();
|
||||
expect(fs.readFileSync(path.join(ROOT, 'patches', `playwright-core@${version}.patch`), 'utf-8')).toContain('+ "TcpPortRandomizationWin"');
|
||||
expect(fs.readFileSync(path.join(ROOT, 'patches', 'playwright-core@1.62.1.patch'), 'utf-8')).toContain('+ "TcpPortRandomizationWin"');
|
||||
const bundle = fs.readFileSync(path.join(ROOT, 'node_modules', 'playwright-core', 'lib', 'coreBundle.js'), 'utf-8');
|
||||
const list = bundle.slice(bundle.indexOf('disabledFeatures = ['), bundle.indexOf('].filter(Boolean);', bundle.indexOf('disabledFeatures = [')));
|
||||
expect(list).toContain('"TcpPortRandomizationWin"');
|
||||
|
||||
Reference in new issue
Block a user