Run e2e rssexec test on a local page

This commit is contained in:
Oliver Blanthorn 2020-06-17 21:55:16 +01:00
parent 44dbea0b80
commit 50aedf60cc
No known key found for this signature in database
GPG key ID: 2BB8C36BB504BFF3
2 changed files with 13 additions and 1 deletions

View file

@ -124,7 +124,7 @@ describe("webdriver", () => {
+ "document.body.appendChild(elem)<CR>") + "document.body.appendChild(elem)<CR>")
// First, make sure completions are offered // First, make sure completions are offered
await driver.get("https://www.bbc.co.uk/news/10628494") await driver.get("http://localhost:8080/rss.html")
const iframe = await iframeLoaded(driver) const iframe = await iframeLoaded(driver)
await sendKeys(driver, ":rssexec ") await sendKeys(driver, ":rssexec ")
await driver.switchTo().frame(iframe) await driver.switchTo().frame(iframe)

12
e2e_tests/html/rss.html Normal file
View file

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