Skip to content

Commit

Permalink
Fix broken test from Quill upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
pmachapman committed Jan 12, 2025
1 parent 875cc5a commit 57af41d
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -478,6 +478,13 @@ class TestEnvironment {
);

this.sourceFixture = TestBed.createComponent(TextComponent);

// Initialize the source text component.
// When run for the first time in a test run, this will load Quill
this.sourceFixture.detectChanges();
tick(EDITOR_READY_TIMEOUT);
this.sourceFixture.detectChanges();

this.source = this.sourceFixture.componentInstance;
this.source.id = new TextDocId('project02', 40, 1, 'target');
this.source.segmentRef = 'verse_1_1';
Expand All @@ -495,7 +502,6 @@ class TestEnvironment {
this.testOnlineStatusService,
instance(mockedReportingService)
);
this.sourceFixture.detectChanges();
this.targetFixture.detectChanges();
tick(EDITOR_READY_TIMEOUT);
}
Expand Down

0 comments on commit 57af41d

Please sign in to comment.