feat: fix playwright test issues

This commit is contained in:
Stevan Freeborn
2025-02-04 02:21:59 -06:00
+10 -3
View File
@@ -124,9 +124,16 @@ return {
end end
local enter_launch_url = function() local enter_launch_url = function()
local url = vim.fn.input("URL to launch: ", "http://localhost:") local co = coroutine.running()
vim.cmd('echo ""') return coroutine.create(function()
return url vim.ui.input({ prompt = "Enter URL: ", default = "http://localhost:" }, function(url)
if url == nil or url == "" then
return
else
coroutine.resume(co, url)
end
end)
end)
end end
for _, language in ipairs({ "typescript", "javascript", "typescriptreact", "javascriptreact", "vue" }) do for _, language in ipairs({ "typescript", "javascript", "typescriptreact", "javascriptreact", "vue" }) do