github.com/MontFerret/ferret@v0.18.0/e2e/tests/dynamic/doc/viewport/size.fql (about) 1 LET url = @lab.cdn.dynamic + "?redirect=/media" 2 LET expectedW = 1920 3 LET expectedH = 1080 4 5 LET doc = DOCUMENT(url, { 6 driver: 'cdp', 7 viewport: { 8 width: expectedW, 9 height: expectedH 10 } 11 }) 12 13 LET actualW = TO_INT(INNER_TEXT(doc, '#screen-width')) 14 LET actualH = TO_INT(INNER_TEXT(doc, '#screen-height')) 15 16 T::EQ(actualW, expectedW) 17 T::EQ(actualH, expectedH) 18 19 RETURN NONE