Describe the bug
We set useDefaultBrowserType to true expecting preset to use default browser from playwright's deviceDescriptorsSource.json file.
When running - we don't get any errors, but run passes with "no tests were found" message skipping all tests.
In general our intention is to use devices (playwright's or custom) with useDefaultBrowserType turned ON and do not specify any browser.
Also it seems like preset is bugging only with devices which have webkit or firefox set as default browser coz devices: ['Galaxy S8'] + useDefaultBrowserType: true seems to work fine.
To Reproduce
specify configuration options via Jest's testEnvironmentOptions option in jest.config.js file
add devices which have firefox or webkit defaults e.g. devices: ['JioPhone 2', 'iPhone XR']
do not specify browsers option
set useDefaultBrowserType to true
launch test
Expected behavior
Test will be run two times:
in firefox on JioPhone 2
in webkit on iPhone XR
Screenshots
Desktop (please complete the following information):
OS: macOS 11.5.2 (20G95)
"playwright": "1.14.1",
"jest-playwright-preset": "^1.7.0",
Jest configuration (Either in the package.json > jest or in the jest.config.js):
Describe the bug We set
useDefaultBrowserType
totrue
expecting preset to use default browser from playwright'sdeviceDescriptorsSource.json
file. When running - we don't get any errors, but run passes with "no tests were found" message skipping all tests.In general our intention is to use devices (playwright's or custom) with
useDefaultBrowserType
turned ON and do not specify any browser.Also it seems like preset is bugging only with devices which have webkit or firefox set as default browser coz
devices: ['Galaxy S8'] + useDefaultBrowserType: true
seems to work fine.To Reproduce
testEnvironmentOptions
option in jest.config.js filefirefox
orwebkit
defaults e.g.devices: ['JioPhone 2', 'iPhone XR']
browsers
optionuseDefaultBrowserType
totrue
Expected behavior Test will be run two times:
firefox
onJioPhone 2
webkit
oniPhone XR
Screenshots
Desktop (please complete the following information):
Jest configuration (Either in the package.json > jest or in the
jest.config.js
):Additional context
jest-playwright-preset/lib/PlaywrightEnvironment.js
file, especially line 170 but had no luckbrowsers
anddevices
explicitly - all works finetestMatch
option