mirror of
https://github.com/aelve/guide.git
synced 2024-11-23 12:15:06 +03:00
Merge pull request #148 from aelve/footerTestFix
Fix overflow test for footer.
This commit is contained in:
commit
e13a7fc832
@ -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