尝试断言在用户身份验证之后显示正确的登陆页。
注意到在身份验证之后,应用程序重定向到我能够为其创建页面方法的几个页面。
given
to LegacyLoginPage
when: someoneLogsIn(testUsername, testPassword)
then:
via AuthenticationTargetPage
and:
via LoginRedirectPage
//Thread.sleep(5000)
then: at ReferenceLibraryPage
当使用via方法运行规范时,测试失败了断言步骤。