File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ import ./make-test-python.nix (
2121 }
2222 ''
2323 import sys
24+ import re
2425 from playwright.sync_api import sync_playwright
2526 from playwright.sync_api import expect
2627
@@ -29,6 +30,7 @@ import ./make-test-python.nix (
2930 "firefox": {},
3031 "webkit": {}
3132 }
33+ needle = re.compile("Nix.*Reference Manual")
3234 if len(sys.argv) != 3 or sys.argv[1] not in browsers.keys():
3335 print(f"usage: {sys.argv[0]} [{'|'.join(browsers.keys())}] <url>")
3436 sys.exit(1)
@@ -42,7 +44,7 @@ import ./make-test-python.nix (
4244 context = browser.new_context()
4345 page = context.new_page()
4446 page.goto(url)
45- expect(page.get_by_text("Nix Reference Manual" )).to_be_visible()
47+ expect(page.get_by_text(needle )).to_be_visible()
4648 ''
4749 )
4850 ] ;
You can’t perform that action at this time.
0 commit comments