@@ -31,16 +31,16 @@ func testRepoGenerate(t *testing.T, session *TestSession, templateID, templateOw
3131
3232 // Step2: click the "Use this template" button
3333 htmlDoc := NewHTMLParser (t , resp .Body )
34- link , exists := htmlDoc .doc .Find (" a.ui.button[href^=\ " /repo/create\" ]" ).Attr ("href" )
34+ link , exists := htmlDoc .doc .Find (` a.ui.button[href^="/repo/create"]` ).Attr ("href" )
3535 assert .True (t , exists , "The template has changed" )
3636 req = NewRequest (t , "GET" , link )
3737 resp = session .MakeRequest (t , req , http .StatusOK )
3838
39- // Step3: fill the form of the create
39+ // Step3: fill the form on the " create" page
4040 htmlDoc = NewHTMLParser (t , resp .Body )
41- link , exists = htmlDoc .doc .Find (" form.ui.form[action^=\ " /repo/create\" ]" ).Attr ("action" )
41+ link , exists = htmlDoc .doc .Find (` form.ui.form[action^="/repo/create"]` ).Attr ("action" )
4242 assert .True (t , exists , "The template has changed" )
43- _ , exists = htmlDoc .doc .Find (fmt .Sprintf (".owner.dropdown .item[data-value=\ " %d\" ]" , generateOwner .ID )).Attr ("data-value" )
43+ _ , exists = htmlDoc .doc .Find (fmt .Sprintf (`#repo_owner_dropdown .item[data-value="%d"]` , generateOwner .ID )).Attr ("data-value" )
4444 assert .True (t , exists , "Generate owner '%s' is not present in select box" , generateOwnerName )
4545 req = NewRequestWithValues (t , "POST" , link , map [string ]string {
4646 "_csrf" : htmlDoc .GetCSRF (),
0 commit comments