File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change 1
1
// All stability badges should have rounded corners and colored backgrounds.
2
2
goto: "file://" + |DOC_PATH| + "/test_docs/index.html"
3
3
show-text: true
4
+
5
+ // Checking the alignment of the badges text with the item name.
6
+ assert-css: (
7
+ "//*[@class='item-table']//*[@class='item-left module-item']/*[@class='stab deprecated']",
8
+ {"padding-top": "2px"},
9
+ )
10
+ assert-position: (
11
+ "//*[@class='item-table']//*[@class='item-left module-item']/*[@class='stab deprecated']",
12
+ {"y": 1892},
13
+ )
14
+ assert-position: (
15
+ "//*[@class='item-table']//*[@class='item-left module-item']/*[@class='stab deprecated']/preceding-sibling::a",
16
+ {"y": 1894}, // 1892 + 2 because of padding
17
+ )
18
+
4
19
define-function: (
5
20
"check-badge",
6
21
(theme, background, color),
You can’t perform that action at this time.
0 commit comments