Skip to content

Commit

Permalink
Fix check for presence of elements
Browse files Browse the repository at this point in the history
  • Loading branch information
bkimminich committed Jan 14, 2019
1 parent 15f5f3e commit a29f29e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/e2e/_sharedSpec.js
Expand Up @@ -6,8 +6,8 @@ protractor.expect = {
})

it("challenge '" + context.challenge + "' should be solved on score board", () => {
expect(element(by.id(context.challenge + '.solved'))).toBeTruthy()
expect(element(by.id(context.challenge + '.notSolved'))).not.toBeTruthy()
expect(element(by.id(context.challenge + '.solved')).isPresent()).toBeTruthy()
expect(element(by.id(context.challenge + '.notSolved')).isPresent()).toBeFalsy()
})
})
}
Expand Down

0 comments on commit a29f29e

Please sign in to comment.