Skip to content

Instantly share code, notes, and snippets.

@AvocadoVenom
Created July 12, 2022 08:01
Show Gist options
  • Save AvocadoVenom/d21a5baccc50dc5089a520dc41a53bad to your computer and use it in GitHub Desktop.
Save AvocadoVenom/d21a5baccc50dc5089a520dc41a53bad to your computer and use it in GitHub Desktop.
import { devices, PlaywrightTestConfig } from '@playwright/test'
const config: PlaywrightTestConfig = {
projects: [
{
name: 'Desktop__Chromium',
use: { ...devices['Desktop Chromium'] }
},
{
name: 'Desktop__Safari',
use: { ...devices['Desktop Safari'] }
}
],
use: {
viewport: { width: 1440, height: 810, },
// ...
},
timeout: 5000,
// ...
}
export default config
import { devices, PlaywrightTestConfig } from '@playwright/test'
const config: PlaywrightTestConfig = {
projects: [
{
name: 'Mobile_Landscape__Android-Pixel-5',
use: { ...devices['Pixel 5 landscape'] }
},
{
name: 'Mobile_Portrait__iOS-iPhone-13',
use: { ...devices['iPhone 13'] }
}
],
use: {
// ...
},
timeout: 5000,
// ...
}
export default config
import { devices, PlaywrightTestConfig } from '@playwright/test'
const config: PlaywrightTestConfig = {
projects: [
{
name: 'Tablet_Portrait__Galaxy-Tab-S4',
use: { ...devices['Galaxy Tab S4'] }
},
{
name: 'Tablet_Landscape__iPad-Pro-11',
use: { ...devices['iPad Pro 11 landscape'] }
}
],
use: {
// ...
},
timeout: 5000,
// ...
}
export default config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment