Apply suggestions from code review

Co-authored-by: Henry <111202+cryptix@users.noreply.github.com>
This commit is contained in:
Alexander Cobleigh 2021-03-16 14:13:33 +01:00 committed by GitHub
parent 6cd0974a94
commit 110e7813a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 4 deletions

View File

@ -81,6 +81,7 @@ func TestNoticesEditButtonVisible(t *testing.T) {
a.EqualValues(0, doc.Find(editButtonSelector).Length())
// start preparing the ~login dance~
// TODO: make this code reusable and share it with the login => /dashboard http:200 test
// cookiejar: a very cheap client session
// TODO: refactor login dance for re-use in testing / across tests
jar, err := cookiejar.New(nil)
@ -164,9 +165,5 @@ func TestNoticesEditButtonVisible(t *testing.T) {
doc, resp = ts.Client.GetHTML(noticeURL.String())
a.Equal(http.StatusOK, resp.Code)
// html, err := doc.Html()
// r.NoError(err)
// t.Log(html)
a.EqualValues(1, doc.Find(editButtonSelector).Length())
}