mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-18 15:33:02 +00:00
consistent submit buttons
This commit is contained in:
@@ -52,12 +52,12 @@ async def test_share_code_flow_full(app, browser, full_spawn, create_user_with_s
|
|||||||
assert f"access {user.name}'s server" in header_text
|
assert f"access {user.name}'s server" in header_text
|
||||||
assert f"You ({share_user.name})" in header_text
|
assert f"You ({share_user.name})" in header_text
|
||||||
# TODO verify form
|
# TODO verify form
|
||||||
submit = browser.locator('//input[@type="submit"]')
|
submit = browser.locator('//button[@type="submit"]')
|
||||||
await submit.click()
|
await submit.click()
|
||||||
|
|
||||||
# redirects to server, which triggers oauth approval
|
# redirects to server, which triggers oauth approval
|
||||||
await expect(browser).to_have_url(re.compile(r".*/oauth2/authorize"))
|
await expect(browser).to_have_url(re.compile(r".*/oauth2/authorize"))
|
||||||
submit = browser.locator('//input[@type="submit"]')
|
submit = browser.locator('//button[@type="submit"]')
|
||||||
await submit.click()
|
await submit.click()
|
||||||
|
|
||||||
# finally, we are at the server!
|
# finally, we are at the server!
|
||||||
|
@@ -45,7 +45,7 @@
|
|||||||
<p>
|
<p>
|
||||||
After accepting the invitation, you will be redirected to <a href="{{ next_url | safe }}">{{ next_url }}</a>.
|
After accepting the invitation, you will be redirected to <a href="{{ next_url | safe }}">{{ next_url }}</a>.
|
||||||
</p>
|
</p>
|
||||||
<input type="submit" value="Accept invitation" class="form-control btn-jupyter" />
|
<button type="submit" class="form-control btn btn-jupyter" >Accept invitation</button>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div></div></div>
|
</div></div></div>
|
||||||
|
@@ -25,7 +25,7 @@
|
|||||||
{{spawner_options_form | safe}}
|
{{spawner_options_form | safe}}
|
||||||
<br>
|
<br>
|
||||||
<div class="feedback-container">
|
<div class="feedback-container">
|
||||||
<input type="submit" value="Start" class="btn btn-jupyter form-control">
|
<button type="submit" class="btn btn-jupyter form-control">Start</button>
|
||||||
<div class="feedback-widget hidden">
|
<div class="feedback-widget hidden">
|
||||||
<i class="fa fa-spinner"></i>
|
<i class="fa fa-spinner"></i>
|
||||||
</div>
|
</div>
|
||||||
|
@@ -19,6 +19,7 @@ c.JupyterHub.bind_url = 'http://127.0.0.1:8000'
|
|||||||
# don't cache static files
|
# don't cache static files
|
||||||
c.JupyterHub.tornado_settings = {
|
c.JupyterHub.tornado_settings = {
|
||||||
"no_cache_static": True,
|
"no_cache_static": True,
|
||||||
|
"slow_spawn_timeout": 0,
|
||||||
}
|
}
|
||||||
|
|
||||||
c.JupyterHub.allow_named_servers = True
|
c.JupyterHub.allow_named_servers = True
|
||||||
|
Reference in New Issue
Block a user