test(playwright): do not check desktop viewports by default (#25222)

This commit is contained in:
Liam DeBeasi
2022-05-03 16:32:58 -04:00
committed by GitHub
parent d1fc717f59
commit be2985bff5
396 changed files with 202 additions and 88 deletions

View File

@ -7,22 +7,27 @@ expect.extend(matchers);
const projects = [ const projects = [
{ {
name: 'chromium', /**
* This is really just desktop Firefox
* but with a mobile viewport.
*/
name: 'Mobile Firefox',
use: { use: {
...devices['Desktop Chrome'], browserName: 'firefox',
}, /**
}, * This is the Pixel 5 configuration.
{ * We can't use devices['Pixel 5']
name: 'firefox', * because the "isMobile" option is
use: { * not supported on Firefox.
...devices['Desktop Firefox'], */
}, viewport: {
}, width: 393,
{ height: 727
name: 'webkit', },
use: { screen: {
...devices['Desktop Safari'], width: 393,
height: 851
}
}, },
}, },
{ {

Binary file not shown.

After

Width:  |  Height:  |  Size: 112 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 112 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 124 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 174 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 124 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 175 KiB

View File

@ -6,6 +6,7 @@ test.describe('datetime: selecting a day', () => {
const testHighlight = async (page: E2EPage, datetimeID: string) => { const testHighlight = async (page: E2EPage, datetimeID: string) => {
const today = new Date(); const today = new Date();
await page.goto('/src/components/datetime/test/basic'); await page.goto('/src/components/datetime/test/basic');
await page.setIonViewport();
const todayBtn = page.locator( const todayBtn = page.locator(
`#${datetimeID} .calendar-day[data-day='${today.getDate()}'][data-month='${today.getMonth() + 1}']` `#${datetimeID} .calendar-day[data-day='${today.getDate()}'][data-month='${today.getMonth() + 1}']`

Some files were not shown because too many files have changed in this diff Show More