()
| 175 | |
| 176 | @pytest.mark.render |
| 177 | def test_render(): |
| 178 | r = get() |
| 179 | script = """ |
| 180 | () => { |
| 181 | return { |
| 182 | width: document.documentElement.clientWidth, |
| 183 | height: document.documentElement.clientHeight, |
| 184 | deviceScaleFactor: window.devicePixelRatio, |
| 185 | } |
| 186 | } |
| 187 | """ |
| 188 | val = r.html.render(script=script) |
| 189 | for value in ('width', 'height', 'deviceScaleFactor'): |
| 190 | assert value in val |
| 191 | |
| 192 | about = r.html.find('#about', first=True) |
| 193 | assert len(about.links) == 6 |
| 194 | |
| 195 | |
| 196 | @pytest.mark.render |