test(playwright): do not check desktop viewports by default (#25222)
@ -7,22 +7,27 @@ expect.extend(matchers);
|
||||
|
||||
const projects = [
|
||||
{
|
||||
name: 'chromium',
|
||||
|
||||
/**
|
||||
* This is really just desktop Firefox
|
||||
* but with a mobile viewport.
|
||||
*/
|
||||
name: 'Mobile Firefox',
|
||||
use: {
|
||||
...devices['Desktop Chrome'],
|
||||
browserName: 'firefox',
|
||||
/**
|
||||
* This is the Pixel 5 configuration.
|
||||
* We can't use devices['Pixel 5']
|
||||
* because the "isMobile" option is
|
||||
* not supported on Firefox.
|
||||
*/
|
||||
viewport: {
|
||||
width: 393,
|
||||
height: 727
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'firefox',
|
||||
use: {
|
||||
...devices['Desktop Firefox'],
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'webkit',
|
||||
use: {
|
||||
...devices['Desktop Safari'],
|
||||
screen: {
|
||||
width: 393,
|
||||
height: 851
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
|
After Width: | Height: | Size: 112 KiB |
Before Width: | Height: | Size: 77 KiB |
Before Width: | Height: | Size: 123 KiB |
Before Width: | Height: | Size: 166 KiB |
After Width: | Height: | Size: 112 KiB |
Before Width: | Height: | Size: 77 KiB |
Before Width: | Height: | Size: 123 KiB |
Before Width: | Height: | Size: 167 KiB |
After Width: | Height: | Size: 124 KiB |
Before Width: | Height: | Size: 81 KiB |
Before Width: | Height: | Size: 138 KiB |
Before Width: | Height: | Size: 174 KiB |
After Width: | Height: | Size: 124 KiB |
Before Width: | Height: | Size: 81 KiB |
Before Width: | Height: | Size: 136 KiB |
Before Width: | Height: | Size: 175 KiB |
@ -6,6 +6,7 @@ test.describe('datetime: selecting a day', () => {
|
||||
const testHighlight = async (page: E2EPage, datetimeID: string) => {
|
||||
const today = new Date();
|
||||
await page.goto('/src/components/datetime/test/basic');
|
||||
await page.setIonViewport();
|
||||
|
||||
const todayBtn = page.locator(
|
||||
`#${datetimeID} .calendar-day[data-day='${today.getDate()}'][data-month='${today.getMonth() + 1}']`
|
||||
|
After Width: | Height: | Size: 34 KiB |
Before Width: | Height: | Size: 34 KiB |
Before Width: | Height: | Size: 50 KiB |
Before Width: | Height: | Size: 67 KiB |
After Width: | Height: | Size: 34 KiB |
Before Width: | Height: | Size: 34 KiB |
Before Width: | Height: | Size: 50 KiB |
Before Width: | Height: | Size: 68 KiB |
After Width: | Height: | Size: 29 KiB |
Before Width: | Height: | Size: 28 KiB |
Before Width: | Height: | Size: 44 KiB |
Before Width: | Height: | Size: 56 KiB |
After Width: | Height: | Size: 29 KiB |
Before Width: | Height: | Size: 28 KiB |
Before Width: | Height: | Size: 43 KiB |
Before Width: | Height: | Size: 56 KiB |
After Width: | Height: | Size: 37 KiB |
Before Width: | Height: | Size: 36 KiB |
Before Width: | Height: | Size: 52 KiB |
Before Width: | Height: | Size: 72 KiB |
After Width: | Height: | Size: 37 KiB |
Before Width: | Height: | Size: 36 KiB |
Before Width: | Height: | Size: 53 KiB |
Before Width: | Height: | Size: 72 KiB |
After Width: | Height: | Size: 31 KiB |
Before Width: | Height: | Size: 30 KiB |
Before Width: | Height: | Size: 46 KiB |
Before Width: | Height: | Size: 60 KiB |
After Width: | Height: | Size: 31 KiB |
Before Width: | Height: | Size: 30 KiB |
Before Width: | Height: | Size: 46 KiB |
Before Width: | Height: | Size: 60 KiB |
After Width: | Height: | Size: 25 KiB |
Before Width: | Height: | Size: 20 KiB |
Before Width: | Height: | Size: 37 KiB |
Before Width: | Height: | Size: 40 KiB |
After Width: | Height: | Size: 25 KiB |
Before Width: | Height: | Size: 20 KiB |
Before Width: | Height: | Size: 37 KiB |
Before Width: | Height: | Size: 40 KiB |
After Width: | Height: | Size: 26 KiB |
Before Width: | Height: | Size: 21 KiB |
Before Width: | Height: | Size: 39 KiB |
Before Width: | Height: | Size: 43 KiB |
After Width: | Height: | Size: 26 KiB |
Before Width: | Height: | Size: 21 KiB |
Before Width: | Height: | Size: 38 KiB |
Before Width: | Height: | Size: 43 KiB |
After Width: | Height: | Size: 28 KiB |
Before Width: | Height: | Size: 23 KiB |
Before Width: | Height: | Size: 41 KiB |
Before Width: | Height: | Size: 47 KiB |
After Width: | Height: | Size: 28 KiB |
Before Width: | Height: | Size: 23 KiB |
Before Width: | Height: | Size: 41 KiB |
Before Width: | Height: | Size: 47 KiB |
After Width: | Height: | Size: 29 KiB |
Before Width: | Height: | Size: 24 KiB |
Before Width: | Height: | Size: 43 KiB |
Before Width: | Height: | Size: 50 KiB |
After Width: | Height: | Size: 29 KiB |
Before Width: | Height: | Size: 24 KiB |
Before Width: | Height: | Size: 43 KiB |
Before Width: | Height: | Size: 50 KiB |
After Width: | Height: | Size: 37 KiB |
Before Width: | Height: | Size: 36 KiB |
Before Width: | Height: | Size: 53 KiB |
Before Width: | Height: | Size: 72 KiB |
After Width: | Height: | Size: 37 KiB |
Before Width: | Height: | Size: 36 KiB |
Before Width: | Height: | Size: 52 KiB |
Before Width: | Height: | Size: 72 KiB |
After Width: | Height: | Size: 32 KiB |
Before Width: | Height: | Size: 31 KiB |
Before Width: | Height: | Size: 47 KiB |
Before Width: | Height: | Size: 60 KiB |
After Width: | Height: | Size: 31 KiB |
Before Width: | Height: | Size: 31 KiB |
Before Width: | Height: | Size: 46 KiB |
Before Width: | Height: | Size: 60 KiB |
After Width: | Height: | Size: 23 KiB |
Before Width: | Height: | Size: 18 KiB |