Skip to content

Commit 782cd9b

Browse files
Merge from tanzu
1 parent 86b39c5 commit 782cd9b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

selenium/test/oauth/with-sp-initiated/unauthorized.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@ describe('An user without management tag', function () {
2929
if (!await homePage.isLoaded()) {
3030
throw new Error('Failed to login')
3131
}
32-
const visible = await homePage.isWarningVisible()
33-
assert.ok(visible)
32+
assert.ok(await homePage.isWarningVisible())
3433
})
3534

3635
it('should get "Not authorized" warning message and logout button but no login button', async function(){
@@ -47,7 +46,7 @@ describe('An user without management tag', function () {
4746
})
4847

4948
it('should get redirected to home page again without error message', async function(){
50-
await driver.sleep(250)
49+
await driver.sleep(250)
5150
const visible = await homePage.isWarningVisible()
5251
assert.ok(!visible)
5352
})

0 commit comments

Comments
 (0)