Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
vivinkrishna-ni committed Oct 10, 2024
1 parent e84f344 commit 629a247
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -288,10 +288,9 @@ export class RichTextEditorPageObject {
public async isMentionListboxOpened(): Promise<boolean> {
await waitForUpdatesAsync();

return (
!this.getMentionListbox()
?.shadowRoot?.querySelector(anchoredRegionTag)?.hidden
);
return !this.getMentionListbox()?.shadowRoot?.querySelector(
anchoredRegionTag
)?.hidden;
}

public getEditorMentionViewAttributeValues(attribute: string): string[] {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1134,14 +1134,19 @@ describe('RichTextEditor', () => {
] as const;

parameterizeSpec(differentInvalidLinks, (spec, name, value) => {
spec(`${name} renders as plain text in editor`, async () => {
await pageObject.pasteHTMLToEditor(value.input);

expect(pageObject.getEditorTagNames()).toEqual(['P']);
expect(pageObject.getEditorLeafContents()).toEqual([
value.text
]);
});
spec(
`${name} renders as plain text in editor`,
async () => {
await pageObject.pasteHTMLToEditor(value.input);

expect(pageObject.getEditorTagNames()).toEqual([
'P'
]);
expect(pageObject.getEditorLeafContents()).toEqual([
value.text
]);
}
);
});
});

Expand Down

0 comments on commit 629a247

Please sign in to comment.