test: 增加锁屏页面的单元测试
This commit is contained in:
parent
58f517b8bd
commit
44d049d471
|
@ -82,5 +82,14 @@ namespace Bootstrap.Admin.Controllers.SqlServer
|
||||||
var content = await r.Content.ReadAsStringAsync();
|
var content = await r.Content.ReadAsStringAsync();
|
||||||
Assert.Contains("服务器拒绝处理您的请求", content);
|
Assert.Contains("服务器拒绝处理您的请求", content);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[Fact]
|
||||||
|
public async void Lock_Ok()
|
||||||
|
{
|
||||||
|
var r = await Client.GetAsync("Lock");
|
||||||
|
Assert.True(r.IsSuccessStatusCode);
|
||||||
|
var content = await r.Content.ReadAsStringAsync();
|
||||||
|
Assert.Contains("系统锁屏", content);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue