fix(editor): Plus Escape focus return, sheet width rounding
This commit is contained in:
1 parent
021685f6b3
commit
3a7ffa2f8b
3 files changed
+42
-18
No files matched your search
@@ -94,7 +94,8 @@ async function expectSheetWithin(page: Page, viewportWidth: number) {
|
||||
const layer = page.locator('[data-place="citations"]')
|
||||
const box = await layer.boundingBox()
|
||||
expect(box!.width).toBeLessThanOrEqual(34 * REM + 0.5)
|
||||
expect(box!.width).toBeLessThanOrEqual(viewportWidth)
|
||||
// Sub-pixel layout rounding (375.00001…): the same tolerance as the line above.
|
||||
expect(box!.width).toBeLessThanOrEqual(viewportWidth + 0.5)
|
||||
const edges = await page.evaluate(() => {
|
||||
const sheet = document.querySelector('[data-place="citations"]')!
|
||||
const rect = sheet.getBoundingClientRect()
|
||||
|
||||
Reference in new issue
Block a user