about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume.gomez@huawei.com>2023-06-23 19:34:37 +0200
committerGuillaume Gomez <guillaume.gomez@huawei.com>2023-06-23 19:34:37 +0200
commit3b17012ac9db67be037e3ce3fa822e562a021eb4 (patch)
tree48908265a0bc960a9dae751e643635d3542ad0d1
parent2f1939ab8b147b28809604d14876cb958e935cdd (diff)
downloadrust-3b17012ac9db67be037e3ce3fa822e562a021eb4.tar.gz
rust-3b17012ac9db67be037e3ce3fa822e562a021eb4.zip
Fix GUI test for popover
-rw-r--r--tests/rustdoc-gui/help-page.goml4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/rustdoc-gui/help-page.goml b/tests/rustdoc-gui/help-page.goml
index 1a1c1b28f61..6e880302f28 100644
--- a/tests/rustdoc-gui/help-page.goml
+++ b/tests/rustdoc-gui/help-page.goml
@@ -67,5 +67,5 @@ go-to: "file://" + |DOC_PATH| + "/test_docs/index.html"
 set-window-size: (1000, 1000) // Popover only appears when the screen width is >700px.
 assert-false: "#help"
 click: "#help-button > a"
-click: ".popover a[href='https://doc.rust-lang.org/rustdoc/']"
-wait-for-document-property: {"URL": "https://doc.rust-lang.org/rustdoc/"}
+click: "//*[@id='help']//a[text()='the rustdoc book']"
+wait-for-document-property: ({"URL": "https://doc.rust-lang.org/"}, STARTS_WITH)