(server_proc: subprocess.Popen, browser: Chrome)
| 14 | |
| 15 | |
| 16 | def test(server_proc: subprocess.Popen, browser: Chrome): |
| 17 | time.sleep(10) |
| 18 | percy_snapshot(browser, name='path_deploy_1') |
| 19 | browser.get('http://localhost:8080/') |
| 20 | time.sleep(2) |
| 21 | page_html = browser.find_element(By.TAG_NAME, 'body').get_attribute('innerHTML') |
| 22 | print(page_html) |
| 23 | for f in ['bmi', 'bokeh_app', 'chat_room', 'input_usage', 'output_usage', 'set_env_demo']: |
| 24 | assert f in page_html, f'{f} not in page' |
| 25 | |
| 26 | time.sleep(2) |
| 27 | |
| 28 | |
| 29 | def start_test_server(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…