test: 更改登录单元测试登录首页
This commit is contained in:
parent
d42bfba824
commit
9ae9d5ccf4
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue