Merge pull request #5426 from tridactyl/rssexec_pls
Some checks failed
e2e / test (firefox, ubuntu) (push) Has been cancelled
e2e / test (firefox, windows) (push) Has been cancelled
e2e / test (firefoxesr, ubuntu) (push) Has been cancelled
lint / lint (mozilla) (push) Has been cancelled
lint / lint (unit) (push) Has been cancelled
lint / lint (lint) (push) Has been cancelled
Website / build (push) Has been cancelled
Website / deploy (push) Has been cancelled

Try to make rssexec test less flakey
This commit is contained in:
Oliver Blanthorn 2026-07-05 15:00:27 +00:00 committed by GitHub
commit 9d767bb018
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 15 deletions

View file

@ -124,11 +124,14 @@ describe("webdriver", () => {
"elem.innerText=`%u`;" +
"document.body.appendChild(elem)<CR>",
)
await driver.executeScript(`
["news/rss.xml", "views/atom.xml", "pews/rss.xml", "tews/atom.xml"].forEach(href => {
const link = document.createElement("a")
link.href = href
document.body.appendChild(link)
})`)
// First, make sure completions are offered
await driver.get(
"file:///" + process.cwd() + "/e2e_tests/html/rss.html",
)
const iframe = await iframeLoaded(driver)
await sendKeys(driver, ":rssexec ")
await driver.switchTo().frame(iframe)

View file

@ -1,12 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>Tridactyl RSS test page</title>
</head>
<body>
<a href="news/rss.xml">
<a href="views/atom.xml">
<a href="pews/rss.xml">
<a href="tews/atom.xml">
</body>
</html>