Skip to content

Commit 651c824

Browse files
authored
Align browser cards by platform + remove baseline card (#2457)
The baseline card information is now moved to next to the feature name.
1 parent d1fb5be commit 651c824

32 files changed

Lines changed: 214 additions & 79 deletions

e2e/tests/feature-page.spec.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ import {
2626

2727
test.beforeEach(async ({page}) => {
2828
await setupFakeNow(page);
29+
await page.setViewportSize({width: 1280, height: 1500});
2930
});
3031

3132
const featureID = 'anchor-positioning';
@@ -51,8 +52,8 @@ test('matches the screenshot', async ({page}) => {
5152
test('matches the screenshot for a discouraged feature', async ({page}) => {
5253
await page.goto(`http://localhost:5555/features/${discouragedFeatureId}`);
5354

54-
// Wait specifically for the "Baseline since" text
55-
await page.waitForSelector('sl-card.wptScore .avail >> text=Baseline since');
55+
// Wait for the specific feature name header to be visible
56+
await expect(page.locator('#nameAndOffsiteLinks h1')).toBeVisible();
5657

5758
await waitForTabbedChartCompletion(
5859
page,
@@ -79,7 +80,7 @@ test('chart width resizes with window', async ({page}) => {
7980
await page.waitForTimeout(1000);
8081
const narrowWidth = 1000;
8182
const wideWidth = 1200;
82-
const height = 1000;
83+
const height = 1500;
8384
const chartContainer = page.locator(
8485
'#feature-wpt-implementation-progress-0-complete',
8586
);
47 Bytes
Loading
-37 Bytes
Loading
-697 Bytes
Loading
663 Bytes
Loading
1.31 KB
Loading
3.37 KB
Loading
611 Bytes
Loading
434 Bytes
Loading
872 Bytes
Loading

0 commit comments

Comments
 (0)