mirror of
https://github.com/tcsenpai/Zundler.git
synced 2025-06-06 19:45:27 +00:00
Rename iframe
This commit is contained in:
parent
b9e88c0fa9
commit
58da889112
@ -16,7 +16,7 @@ def test_copy_button(selenium):
|
|||||||
|
|
||||||
assert "copy-button documentation" in selenium.title
|
assert "copy-button documentation" in selenium.title
|
||||||
|
|
||||||
selenium.switch_to.frame("main")
|
selenium.switch_to.frame("zundler-iframe")
|
||||||
|
|
||||||
button = selenium.find_element(By.CSS_SELECTOR, "button.copybtn")
|
button = selenium.find_element(By.CSS_SELECTOR, "button.copybtn")
|
||||||
|
|
||||||
@ -41,7 +41,7 @@ def test_mermaid(selenium):
|
|||||||
|
|
||||||
assert "mermaid documentation" in selenium.title
|
assert "mermaid documentation" in selenium.title
|
||||||
|
|
||||||
selenium.switch_to.frame("main")
|
selenium.switch_to.frame("zundler-iframe")
|
||||||
|
|
||||||
section = selenium.find_element(By.CSS_SELECTOR, "#section")
|
section = selenium.find_element(By.CSS_SELECTOR, "#section")
|
||||||
svg = selenium.find_element(By.CSS_SELECTOR, "div.mermaid")
|
svg = selenium.find_element(By.CSS_SELECTOR, "div.mermaid")
|
||||||
@ -59,7 +59,7 @@ def test_multi_page(selenium):
|
|||||||
|
|
||||||
assert "multi-page documentation" in selenium.title
|
assert "multi-page documentation" in selenium.title
|
||||||
|
|
||||||
selenium.switch_to.frame("main")
|
selenium.switch_to.frame("zundler-iframe")
|
||||||
|
|
||||||
second_link = selenium.find_element(
|
second_link = selenium.find_element(
|
||||||
By.XPATH, "//a[text() = 'Second' and @class = 'reference internal']"
|
By.XPATH, "//a[text() = 'Second' and @class = 'reference internal']"
|
||||||
@ -80,14 +80,14 @@ def test_multi_page_search(selenium):
|
|||||||
|
|
||||||
assert "multi-page documentation" in selenium.title
|
assert "multi-page documentation" in selenium.title
|
||||||
|
|
||||||
selenium.switch_to.frame("main")
|
selenium.switch_to.frame("zundler-iframe")
|
||||||
|
|
||||||
searchbox = selenium.find_element(By.CSS_SELECTOR, "#searchbox input[type='text']")
|
searchbox = selenium.find_element(By.CSS_SELECTOR, "#searchbox input[type='text']")
|
||||||
|
|
||||||
searchbox.send_keys("Lorem" + Keys.ENTER)
|
searchbox.send_keys("Lorem" + Keys.ENTER)
|
||||||
selenium.switch_to.parent_frame()
|
selenium.switch_to.parent_frame()
|
||||||
time.sleep(2)
|
time.sleep(2)
|
||||||
selenium.switch_to.frame("main")
|
selenium.switch_to.frame("zundler-iframe")
|
||||||
|
|
||||||
assert selenium.title.startswith("Search")
|
assert selenium.title.startswith("Search")
|
||||||
|
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
#main {
|
#zundler-iframe {
|
||||||
/* TODO rename main to avoid collisions*/
|
|
||||||
position:fixed;
|
position:fixed;
|
||||||
top:0; left:0; bottom:0; right:0;
|
top:0; left:0; bottom:0; right:0;
|
||||||
width:100%;
|
width:100%;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
const iFrameId = 'main';
|
const iFrameId = 'zundler-iframe';
|
||||||
|
|
||||||
var set_favicon = function(href) {
|
var set_favicon = function(href) {
|
||||||
if (!href) {return;}
|
if (!href) {return;}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user