@@ -22,31 +22,26 @@ assert-position: (
2222)
2323assert-position: (
2424 "//*[@id='method.create_an_iterator_from_read']//*[@class='notable-traits']",
25- {"x": 951 },
25+ {"x": 955 },
2626)
27- // The tooltip should be beside the `i`
27+ // The tooltip should be below the `i`
2828// 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)
3030click: "//*[@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)
3232compare-elements-position-near: (
3333 "//*[@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 }
3636)
3737compare-elements-position-false: (
3838 "//*[@id='method.create_an_iterator_from_read']//*[@class='notable-traits']",
39- "//*[@class='notable-traits-tooltiptext ']",
39+ "//*[@class='notable popover ']",
4040 ("x")
4141)
42- // The docblock should be flush with the border.
43- assert-css: (
44- "//*[@class='notable-traits-tooltiptext']/*[@class='docblock']",
45- {"margin-left": "0px"}
46- )
4742click: "//*[@id='method.create_an_iterator_from_read']//*[@class='notable-traits']"
4843move-cursor-to: "//h1"
49- assert-count: ("//*[@class='notable-traits-tooltiptext ']", 0)
44+ assert-count: ("//*[@class='notable popover ']", 0)
5045
5146// Now only the `i` should be on the next line.
5247size: (1055, 600)
@@ -77,7 +72,7 @@ assert-position: (
7772)
7873assert-position: (
7974 "//*[@id='method.create_an_iterator_from_read']//*[@class='notable-traits']",
80- {"x": 519 },
75+ {"x": 523 },
8176)
8277
8378// Checking on mobile now.
@@ -101,34 +96,28 @@ assert-position: (
10196)
10297assert-position: (
10398 "//*[@id='method.create_an_iterator_from_read']//*[@class='notable-traits']",
104- {"x": 289 },
99+ {"x": 293 },
105100)
106- // The tooltip should be below `i`
101+ // The tooltip should STILL be below `i`
107102click: "//*[@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: (
110105 "//*[@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 }
113108)
114109compare-elements-position-false: (
115110 "//*[@id='method.create_an_iterator_from_read']//*[@class='notable-traits']",
116- "//*[@class='notable-traits-tooltiptext ']",
111+ "//*[@class='notable popover ']",
117112 ("x")
118113)
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}
128117)
129118click: "//*[@id='method.create_an_iterator_from_read']//*[@class='notable-traits']"
130119move-cursor-to: "//h1"
131- assert-count: ("//*[@class='notable-traits-tooltiptext ']", 0)
120+ assert-count: ("//*[@class='notable popover ']", 0)
132121
133122// Checking on very small mobile. The `i` should be on its own line.
134123size: (365, 600)
@@ -153,25 +142,25 @@ define-function: (
153142 ("reload"),
154143
155144 ("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)),
157146
158147 ("assert-css", (
159- ".notable-traits-tooltiptext h3.notable ",
148+ ".notable.popover h3",
160149 {"color": |header_color|},
161150 ALL,
162151 )),
163152 ("assert-css", (
164- ".notable-traits-tooltiptext pre.content ",
153+ ".notable.popover pre",
165154 {"color": |content_color|},
166155 ALL,
167156 )),
168157 ("assert-css", (
169- ".notable-traits-tooltiptext pre.content a.struct",
158+ ".notable.popover pre a.struct",
170159 {"color": |type_color|},
171160 ALL,
172161 )),
173162 ("assert-css", (
174- ".notable-traits-tooltiptext pre.content a.trait",
163+ ".notable.popover pre a.trait",
175164 {"color": |trait_color|},
176165 ALL,
177166 )),
0 commit comments