@@ -22,31 +22,26 @@ assert-position: (
22
22
)
23
23
assert-position: (
24
24
"//*[@id='method.create_an_iterator_from_read']//*[@class='notable-traits']",
25
- {"x": 951 },
25
+ {"x": 955 },
26
26
)
27
- // The tooltip should be beside the `i`
27
+ // The tooltip should be below the `i`
28
28
// Also, clicking the tooltip should bring its text into the DOM
29
- assert-count: ("//*[@class='notable-traits-tooltiptext ']", 0)
29
+ assert-count: ("//*[@class='notable popover ']", 0)
30
30
click: "//*[@id='method.create_an_iterator_from_read']//*[@class='notable-traits']"
31
- assert-count: ("//*[@class='notable-traits-tooltiptext ']", 1)
31
+ assert-count: ("//*[@class='notable popover ']", 1)
32
32
compare-elements-position-near: (
33
33
"//*[@id='method.create_an_iterator_from_read']//*[@class='notable-traits']",
34
- "//*[@class='notable-traits-tooltiptext ']",
35
- {"y": 2 }
34
+ "//*[@class='notable popover ']",
35
+ {"y": 30 }
36
36
)
37
37
compare-elements-position-false: (
38
38
"//*[@id='method.create_an_iterator_from_read']//*[@class='notable-traits']",
39
- "//*[@class='notable-traits-tooltiptext ']",
39
+ "//*[@class='notable popover ']",
40
40
("x")
41
41
)
42
- // The docblock should be flush with the border.
43
- assert-css: (
44
- "//*[@class='notable-traits-tooltiptext']/*[@class='docblock']",
45
- {"margin-left": "0px"}
46
- )
47
42
click: "//*[@id='method.create_an_iterator_from_read']//*[@class='notable-traits']"
48
43
move-cursor-to: "//h1"
49
- assert-count: ("//*[@class='notable-traits-tooltiptext ']", 0)
44
+ assert-count: ("//*[@class='notable popover ']", 0)
50
45
51
46
// Now only the `i` should be on the next line.
52
47
size: (1055, 600)
@@ -77,7 +72,7 @@ assert-position: (
77
72
)
78
73
assert-position: (
79
74
"//*[@id='method.create_an_iterator_from_read']//*[@class='notable-traits']",
80
- {"x": 519 },
75
+ {"x": 523 },
81
76
)
82
77
83
78
// Checking on mobile now.
@@ -101,34 +96,28 @@ assert-position: (
101
96
)
102
97
assert-position: (
103
98
"//*[@id='method.create_an_iterator_from_read']//*[@class='notable-traits']",
104
- {"x": 289 },
99
+ {"x": 293 },
105
100
)
106
- // The tooltip should be below `i`
101
+ // The tooltip should STILL be below `i`
107
102
click: "//*[@id='method.create_an_iterator_from_read']//*[@class='notable-traits']"
108
- assert-count: ("//*[@class='notable-traits-tooltiptext ']", 1)
109
- compare-elements-position-near-false : (
103
+ assert-count: ("//*[@class='notable popover ']", 1)
104
+ compare-elements-position-near: (
110
105
"//*[@id='method.create_an_iterator_from_read']//*[@class='notable-traits']",
111
- "//*[@class='notable-traits-tooltiptext ']",
112
- {"y": 2 }
106
+ "//*[@class='notable popover ']",
107
+ {"y": 30 }
113
108
)
114
109
compare-elements-position-false: (
115
110
"//*[@id='method.create_an_iterator_from_read']//*[@class='notable-traits']",
116
- "//*[@class='notable-traits-tooltiptext ']",
111
+ "//*[@class='notable popover ']",
117
112
("x")
118
113
)
119
- compare-elements-position-near: (
120
- "//*[@id='method.create_an_iterator_from_read']",
121
- "//*[@class='notable-traits-tooltiptext']",
122
- {"x": 10}
123
- )
124
- // The docblock should be flush with the border.
125
- assert-css: (
126
- "//*[@class='notable-traits-tooltiptext']/*[@class='docblock']",
127
- {"margin-left": "0px"}
114
+ assert-position: (
115
+ "//*[@class='notable popover']",
116
+ {"x": 0}
128
117
)
129
118
click: "//*[@id='method.create_an_iterator_from_read']//*[@class='notable-traits']"
130
119
move-cursor-to: "//h1"
131
- assert-count: ("//*[@class='notable-traits-tooltiptext ']", 0)
120
+ assert-count: ("//*[@class='notable popover ']", 0)
132
121
133
122
// Checking on very small mobile. The `i` should be on its own line.
134
123
size: (365, 600)
@@ -153,25 +142,25 @@ define-function: (
153
142
("reload"),
154
143
155
144
("move-cursor-to", "//*[@id='method.create_an_iterator_from_read']//*[@class='notable-traits']"),
156
- ("assert-count", (".notable-traits-tooltiptext ", 1)),
145
+ ("assert-count", (".notable.popover ", 1)),
157
146
158
147
("assert-css", (
159
- ".notable-traits-tooltiptext h3.notable ",
148
+ ".notable.popover h3",
160
149
{"color": |header_color|},
161
150
ALL,
162
151
)),
163
152
("assert-css", (
164
- ".notable-traits-tooltiptext pre.content ",
153
+ ".notable.popover pre",
165
154
{"color": |content_color|},
166
155
ALL,
167
156
)),
168
157
("assert-css", (
169
- ".notable-traits-tooltiptext pre.content a.struct",
158
+ ".notable.popover pre a.struct",
170
159
{"color": |type_color|},
171
160
ALL,
172
161
)),
173
162
("assert-css", (
174
- ".notable-traits-tooltiptext pre.content a.trait",
163
+ ".notable.popover pre a.trait",
175
164
{"color": |trait_color|},
176
165
ALL,
177
166
)),
0 commit comments