nasa / openmct

A web based mission control framework.
https://nasa.github.io/openmct/
Other
11.98k stars 1.24k forks source link

[Mobile Tests] Datepicker is not detecting user agent #7599

Open rukmini-bose opened 5 months ago

rukmini-bose commented 5 months ago

Summary

When running the mobile test suite, the Datepicker is not detecting the correct device. Instead of detecting the mobile version of the datepicker (which is a full screen modal), we are seeing the desktop version (which is a simple popup).

Screenshot 2024-03-15 at 11 14 21 AM
rukmini-bose commented 5 months ago

Add this to playwright-watch.config.js and playwright-mobile.config.js

{ name: 'android_tablet', grep: /@mobile/, use: { storageState: fileURLToPath( new URL('./test-data/display_layout_with_child_layouts.json', import.meta.url) ), browserName: 'chromium', ...devices['Galaxy Tab S4 landscape'] // Complete List https://github.com/microsoft/playwright/blob/main/packages/playwright-core/src/server/deviceDescriptorsSource.json } }