diff --git a/test/e2e/_sharedSpec.js b/test/e2e/_sharedSpec.js index 3d8d4dc92ab..2173ffe7290 100644 --- a/test/e2e/_sharedSpec.js +++ b/test/e2e/_sharedSpec.js @@ -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() }) }) }