Skip to content

Commit a105761

Browse files
committed
chore: fix viewport eval
1 parent 54cfc7e commit a105761

1 file changed

Lines changed: 1 addition & 11 deletions

File tree

scripts/eval_scenarios/emulation_viewport_test.ts

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,6 @@ export const scenario: TestScenario = {
1616
expectations: calls => {
1717
assert.strictEqual(calls.length, 1);
1818
assert.strictEqual(calls[0].name, 'emulate');
19-
assert.deepStrictEqual(
20-
{
21-
...(calls[0].args.viewport as object),
22-
// models might not send defaults.
23-
isLandscape: KnownDevices['iPhone 14'].viewport.isLandscape ?? false,
24-
},
25-
{
26-
...KnownDevices['iPhone 14'].viewport,
27-
height: 844, // Puppeteer is wrong about the expected height.
28-
},
29-
);
19+
assert.deepStrictEqual(calls[0].args.viewport, '390x844x3,mobile,touch');
3020
},
3121
};

0 commit comments

Comments
 (0)