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