mirror of
https://github.com/aelve/guide.git
synced 2024-12-23 12:52:31 +03:00
Fix overflow test for footer.
This commit is contained in:
parent
3acd358438
commit
5a6d387130
@ -68,13 +68,13 @@ mainPageTests = session "main page" $ using [chromeCaps] $ do
|
||||
footer <- select "#footer"
|
||||
(width, height) <- elemSize footer
|
||||
width `shouldBeInRange` (750, 850)
|
||||
height `shouldBeInRange` (60, 70)
|
||||
height `shouldBeInRange` (30, 70)
|
||||
wd "overflows when shrunk" $ do
|
||||
-- and now it shall be overflowing
|
||||
setWindowSize (700, 500)
|
||||
waitUntil wait_delay (expect . inRange (90, 140) . snd =<< elemSize footer)
|
||||
`catch` \(_::ExpectFailed) -> return ()
|
||||
height2 <- snd <$> elemSize footer
|
||||
height2 `shouldBeInRange` (90, 140)
|
||||
setWindowSize (600, 500)
|
||||
footer <- select "#footer"
|
||||
(_, height) <- elemSize footer
|
||||
height `shouldBeInRange` (71, 140)
|
||||
|
||||
categoryTests :: Spec
|
||||
categoryTests = session "categories" $ using [chromeCaps] $ do
|
||||
|
Loading…
Reference in New Issue
Block a user