Simple test of having a render handler that simply renders files by URL name.
This commit is contained in:
parent
0bccddc62c
commit
db58b38917
4 changed files with 19 additions and 13 deletions
|
@ -12,14 +12,14 @@ func TestLogin(t *testing.T) {
|
|||
ctx, cancel := Setup(5); defer cancel()
|
||||
|
||||
Run(assert, ctx,
|
||||
browser.Navigate(`http://127.0.0.1:5002/login/`),
|
||||
browser.WaitVisible(`body > footer`),
|
||||
browser.WaitVisible(`[data-testid="login-page"]`),
|
||||
browser.SendKeys(`#username`, `zedshaw`),
|
||||
browser.SendKeys(`#password`, `1234`),
|
||||
browser.Click(`#login-submit`, browser.NodeVisible),
|
||||
browser.WaitVisible(`body > footer`),
|
||||
browser.WaitVisible(`[data-testid="home-page"]`))
|
||||
browser.Navigate(`http://127.0.0.1:5002/login/`),
|
||||
browser.WaitVisible(`body > footer`),
|
||||
browser.WaitVisible(`[data-testid="login-page"]`),
|
||||
browser.SendKeys(`#username`, `zedshaw`),
|
||||
browser.SendKeys(`#password`, `1234`),
|
||||
browser.Click(`#login-submit`, browser.NodeVisible),
|
||||
browser.WaitVisible(`body > footer`),
|
||||
browser.WaitVisible(`[data-testid="home-page"]`))
|
||||
}
|
||||
|
||||
func TestStreamPage(t *testing.T) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue