2022-02-14 20:42:36 +00:00
|
|
|
// This test ensures that there is no macro duplicates in the sidebar.
|
2023-04-11 17:11:34 +00:00
|
|
|
go-to: "file://" + |DOC_PATH| + "/test_docs/macro.a.html"
|
2022-02-14 20:42:36 +00:00
|
|
|
// Waiting for the elements in the sidebar to be rendered.
|
2022-06-15 06:25:51 +00:00
|
|
|
wait-for: ".sidebar-elems .macro"
|
2022-02-14 20:42:36 +00:00
|
|
|
// Check there is only one macro named "a" listed in the sidebar.
|
|
|
|
assert-count: (
|
2024-07-07 00:12:53 +00:00
|
|
|
"//*[@class='sidebar-elems']//*[@class='block macro']//li/a[normalize-space()='a']",
|
2022-02-14 20:42:36 +00:00
|
|
|
1,
|
|
|
|
)
|
|
|
|
// Check there is only one macro named "b" listed in the sidebar.
|
|
|
|
assert-count: (
|
2024-07-07 00:12:53 +00:00
|
|
|
"//*[@class='sidebar-elems']//*[@class='block macro']//li/a[normalize-space()='b']",
|
2022-02-14 20:42:36 +00:00
|
|
|
1,
|
|
|
|
)
|