test: fix video channel tests (#18807)

This commit is contained in:
Pavel Feldman 2022-11-14 22:20:00 -08:00 committed by GitHub
parent dbf3fc5089
commit 98513c3737
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -183,7 +183,7 @@ it('should scope browser handles', async ({ browserType, expectScopeState }) =>
expectScopeState(browserType, GOLDEN_PRECONDITION);
});
it('should not generate dispatchers for subresources w/o listeners', async ({ page, server, browserType, expectScopeState }) => {
it('should not generate dispatchers for subresources w/o listeners', async ({ page, server, browserType, expectScopeState, video }) => {
server.setRedirect('/one-style.css', '/two-style.css');
server.setRedirect('/two-style.css', '/three-style.css');
server.setRedirect('/three-style.css', '/four-style.css');
@ -200,6 +200,7 @@ it('should not generate dispatchers for subresources w/o listeners', async ({ pa
{ _guid: 'browser-type', objects: [
{
_guid: 'browser', objects: [
...(video === 'on' ? [{ _guid: 'artifact', objects: [] }] : []),
{ _guid: 'browser-context', objects: [
{
_guid: 'page', objects: [