Skip to content

Commit

Permalink
test: adapt to LSP changes in nightly
Browse files Browse the repository at this point in the history
Not sure what causes this but it seems to work.
  • Loading branch information
mikavilpas committed Jan 21, 2025
1 parent 6cd6d01 commit 9db64b4
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions integration-tests/cypress/e2e/using-ya-to-read-events/lsp.cy.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { flavors } from "@catppuccin/palette"
import { rgbify } from "./utils/hover-utils"
import { isFileSelectedInYazi } from "./utils/yazi-utils"

describe("rename events with LSP support", () => {
Expand All @@ -14,9 +16,13 @@ describe("rename events with LSP support", () => {
// shows an "unused" warning when it has started :)
//
// It takes a bit of time for the LSP server to start
cy.contains("Unused local `ready`.", { timeout: 15_000 })
// cy.typeIntoTerminal(":LspInfo{enter}")
// cy.pause()
cy.contains("ready", { timeout: 15_000 }).should(
"have.css",
"color",
// the color of the unused variable, effectively waiting for the LSP
// to report this after having started
rgbify(flavors.macchiato.colors.overlay2.rgb),
)

cy.typeIntoTerminal("{upArrow}")

Expand Down

0 comments on commit 9db64b4

Please sign in to comment.