const {playwrightLauncher} = require('@web/test-runner-playwright');

const defaultBrowsers = [
  playwrightLauncher({product: 'chromium'}),
  playwrightLauncher({product: 'webkit'}),
  playwrightLauncher({product: 'firefox', concurrency: 1}),
];

const envBrowsers = process.env.BROWSERS?.split(',').map((product) =>
  playwrightLauncher({product})
);

const browsers = envBrowsers ?? defaultBrowsers;

module.exports = {
  files: `packages/scoped-custom-element-registry/test/**/*.test.(js|html)`,
  nodeResolve: true,
  concurrency: 10,
  browsers,
};

const {playwrightLauncher} = require('@web/test-runner-playwright');

const defaultBrowsers = [
  playwrightLauncher({product: 'chromium'}),
  playwrightLauncher({product: 'webkit'}),
  playwrightLauncher({product: 'firefox', concurrency: 1}),
];

const envBrowsers = process.env.BROWSERS?.split(',').map((product) =>
  playwrightLauncher({product})
);

const browsers = envBrowsers ?? defaultBrowsers;

module.exports = {
  files: [
    'packages/scoped-custom-element-registry/test/**/*.test.(js|html)',
    'packages/tests/custom-elements/wtr/**/*.test.(js|html)',
  ],
  nodeResolve: true,
  concurrency: 10,
  browsers,
};

Add a `wtr` folder to the custom elements polyfill tests folder.
Add a `wtr` folder to the custom elements polyfill tests folder.
