test: 更改登录单元测试登录首页

This commit is contained in:
Argo Zhang 2020-03-14 14:52:34 +08:00
parent d42bfba824
commit 9ae9d5ccf4
No known key found for this signature in database
GPG Key ID: 152E398953DDF19F
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ namespace Bootstrap.Admin.Controllers
var content = await r.Content.ReadAsStringAsync();
Assert.Contains("登 录", content);
r = await client.GetAsync("/Account/Login?AppId=BA&View=Login1");
r = await client.GetAsync("/Account/Login?AppId=BA&View=Login-Gitee");
var view = await r.Content.ReadAsStringAsync();
var tokenTag = "<input name=\"__RequestVerificationToken\" type=\"hidden\" value=\"";
var index = view.IndexOf(tokenTag);