Skip to content

Commit

Permalink
Read property instead of attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
vivinkrishna-ni committed Oct 10, 2024
1 parent 5e97c1d commit 0af009b
Showing 1 changed file with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ import { RichTextMentionUsersValidator } from '../../../rich-text-mention/users/
export class RichTextEditorPageObject {
public constructor(
private readonly richTextEditorElement: RichTextEditor
) {}
) { }

public editorSectionHasChildNodes(): boolean {
const editorSection = this.getEditorSection();
Expand Down Expand Up @@ -303,8 +303,10 @@ export class RichTextEditorPageObject {
await waitForUpdatesAsync();

// eslint-disable-next-line no-console
console.log('Anchored region hidden attribute:', !anchoredRegion.hasAttribute('hidden'), anchoredRegion.getAttribute('hidden'));
return !anchoredRegion.hasAttribute('hidden');
console.log('Anchored region hidden attribute:', !anchoredRegion.hasAttribute('hidden'));
// eslint-disable-next-line no-console
console.log('Anchored region hidden property:', !anchoredRegion.hidden);
return !anchoredRegion.hidden;
}

public getEditorMentionViewAttributeValues(attribute: string): string[] {
Expand Down Expand Up @@ -381,7 +383,7 @@ export class RichTextEditorPageObject {
return (
document.activeElement === this.richTextEditorElement
&& document.activeElement?.shadowRoot?.activeElement
=== this.getTiptapEditor()
=== this.getTiptapEditor()
);
}

Expand Down Expand Up @@ -537,7 +539,7 @@ export class RichTextEditorPageObject {
viewElement: richTextMentionUsersViewTag,
validator: new RichTextMentionUsersValidator()
},
() => {}
() => { }
);
mentionInternals.pattern = '^user:(.*)';
mappings.forEach(mapping => {
Expand Down

0 comments on commit 0af009b

Please sign in to comment.