Skip to content

Commit

Permalink
added some assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
steveyegge committed Jun 26, 2024
1 parent ae54763 commit c56438e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,9 @@ abstract class CodyIntegrationTestFixture : BasePlatformTestCase() {
protected fun assertInlayIsShown() {
runInEdtAndWait {
PlatformTestUtil.dispatchAllEventsInIdeEventQueue()
assertNotNull(myFixture)
assertNotNull(myFixture.editor)
assertNotNull(myFixture.editor.inlayModel)
assertTrue(
"Lens group inlay should be displayed", myFixture.editor.inlayModel.hasBlockElements())
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import com.sourcegraph.cody.agent.protocol.ProtocolTextDocument
import java.util.concurrent.CompletableFuture

/**
* Lets you specify before/after tests that modify the document and check the Agent's copy.
* You can specify the starting caret with "^" and optionally the selection with "@".
* Lets you specify before/after tests that modify the document and check the Agent's copy. You can
* specify the starting caret with "^" and optionally the selection with "@".
*/
abstract class DocumentSynchronizationTestFixture : CodyIntegrationTestFixture() {

Expand Down

0 comments on commit c56438e

Please sign in to comment.