Skip to content

Commit

Permalink
[py] Add test to return global from page.
Browse files Browse the repository at this point in the history
  • Loading branch information
AutomatedTester committed May 17, 2021
1 parent e9c738d commit 7bf0e70
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -293,3 +293,11 @@ def test_can_return_a_const_in_a_page(driver, pages):
pages.load("const_js.html")
res = driver.execute_script("return makeMeA('sandwich');")
assert res == "cheese sandwich"


@pytest.mark.xfail_firefox
def test_can_return_global_const(driver, pages):
pages.load("const_js.html")
# cheese is a variable with "cheese" in it
res = driver.execute_script("return cheese")
assert res == "cheese"

0 comments on commit 7bf0e70

Please sign in to comment.