HsacAcceptanceTests.SlimTests.BrowserTest.GalenTest


See whether we can check layout of a page

variable defined: HTML= {{{ <!DOCTYPE html> <html lang="en"> <body> <div id="menu"> <ul> <li cass="when-not-logged"><a href="#">Home</a></li> </ul> </div> </body> </html>}}}


script mock xml server setup
add response
<!DOCTYPE html>
<html lang="en">
<body>
    <div id="menu">
        <ul>
            <li cass="when-not-logged"><a href="#">Home</a></li>
        </ul>
    </div>
</body>
</html>
$url<-[http://127.0.0.1:8001/FitNesseMock] get mock server url


script browser test
open $url->[http://127.0.0.1:8001/FitNesseMock]

script layout test
set included tags usual,hovered
show verify layout using http://files/galenExamples/menuHighlight.gspec 1-fitnesselayouttest0.html
check verified spec count 2>0
check passed spec count 0
check spec error count 2
check spec warning count 0
show layout check messages
[menu_item-1]
error on: color-scheme 90 to 96 % #205380, 1 to 4 % white [color #205380 on "menu_item-1" is 0% which is not in range of 90 to 96%, color white on "menu_item-1" is 61% which is not in range of 1 to 4%]
error on: color-scheme 90 to 96 % #2d6ca2, 1 to 4 % white [color #2d6ca2 on "menu_item-1" is 0% which is not in range of 90 to 96%, color white on "menu_item-1" is 61% which is not in range of 1 to 4%]
set included tags usual
set layout check name Usual menu highlight
show verify layout using http://files/galenExamples/menuHighlight.gspec 2-usual-menu-highlight.html
check verified spec count 1>0
check spec error count 1
check spec warning count 0
set included tags
show verify layout using http://files/galenExamples/menuHighlight.gspec 3-fitnesselayouttest2.html
check verified spec count 0
check spec error count 0
check spec warning count 0