feat: expand intelligent investigation workspace
This commit is contained in:
@@ -49,7 +49,8 @@ for (const width of [320, 375, 400, 640]) {
|
||||
const contextBox = (await context.boundingBox())!;
|
||||
const titleBox = (await titleElement.boundingBox())!;
|
||||
const topicBox = (await topic.boundingBox())!;
|
||||
expect(titleBox.width).toBeGreaterThanOrEqual(contextBox.width - 26);
|
||||
const titleInset = await context.evaluate((element) => parseFloat(getComputedStyle(element).paddingInlineStart));
|
||||
expect(titleBox.width).toBeCloseTo(contextBox.width - titleInset * 2, 0);
|
||||
expect(titleBox.height).toBeGreaterThanOrEqual(20);
|
||||
if (width < 640) expect(titleBox.height).toBeGreaterThan(20);
|
||||
expect(titleBox.height).toBeLessThanOrEqual(40);
|
||||
|
||||
Reference in New Issue
Block a user