Skip to content

Commit

Permalink
test: speed up writing the debug command to the terminal (#89)
Browse files Browse the repository at this point in the history
This saves 3-4 seconds and is much less annoying 🙂
  • Loading branch information
mikavilpas authored Jan 1, 2025
1 parent 79fb538 commit 9b9a901
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion integration-tests/cypress/e2e/blink-ripgrep/basic_spec.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,11 @@ describe("debug mode", () => {
// start insert mode
cy.typeIntoTerminal("a")

cy.typeIntoTerminal(result.value ?? "")
// Quickly send the text over instead of typing it out. Cypress is a
// bit slow when writing a lot of text.
cy.runLuaCode({
luaCode: `vim.api.nvim_feedkeys([[${result.value}]], "n", true)`,
})
cy.typeIntoTerminal("{enter}")

// The results will lbe 5-10 lines of jsonl.
Expand Down

0 comments on commit 9b9a901

Please sign in to comment.