Skip to content

Commit

Permalink
fix(web): removed duplicate quotes in the error message
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-molak committed Dec 1, 2023
1 parent 219f9b9 commit 4ee1c10
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion packages/web/src/screenplay/questions/Attribute.ts
Expand Up @@ -149,7 +149,7 @@ export class Attribute<Native_Element_Type>
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);
Expand Down

0 comments on commit 4ee1c10

Please sign in to comment.