diff --git a/integration/web-specs/spec/screenplay/questions/Attribute.spec.ts b/integration/web-specs/spec/screenplay/questions/Attribute.spec.ts index 79880de55af..e587b133acb 100644 --- a/integration/web-specs/spec/screenplay/questions/Attribute.spec.ts +++ b/integration/web-specs/spec/screenplay/questions/Attribute.spec.ts @@ -33,7 +33,7 @@ describe('Attribute', () => { it('complains if the target is not specified', () => expect(actorCalled('Wendy').attemptsTo( Ensure.that(Attribute.called('lang'), equals('en')), - )).to.be.rejectedWith(LogicError, `Couldn't read attribute "lang" of an unspecified page element.`)); + )).to.be.rejectedWith(LogicError, `Couldn't read attribute 'lang' of an unspecified page element`)); it('produces a QuestionAdapter that enables access to the underlying value', () => actorCalled('Wendy').attemptsTo( diff --git a/packages/web/src/screenplay/questions/Attribute.ts b/packages/web/src/screenplay/questions/Attribute.ts index 45a2b46fa43..93bc6c97654 100644 --- a/packages/web/src/screenplay/questions/Attribute.ts +++ b/packages/web/src/screenplay/questions/Attribute.ts @@ -149,7 +149,7 @@ export class Attribute const name = await actor.answer(this.name); if (! this.element) { - throw new LogicError(d`Couldn't read attribute "${ name }" of an unspecified page element.`); + throw new LogicError(d`Couldn't read attribute ${ name } of an unspecified page element`); } const element = await actor.answer(this.element);