mirror of
https://gitee.com/LongbowEnterprise/BootstrapBlazor.git
synced 2024-12-02 03:59:14 +08:00
refactor(Captcha): modify slider verification code footer style (#2087)
* fix: 修改滑动验证码样式不正确 * test: 更新单元测试 * chore: bump version 7.10.4 --------- Co-authored-by: Argo-AscioTech <argo@live.ca>
This commit is contained in:
parent
202d32ed37
commit
9171b1c2c5
@ -1,7 +1,7 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk.Razor">
|
||||
|
||||
<PropertyGroup>
|
||||
<Version>7.10.4-beta04</Version>
|
||||
<Version>7.10.4</Version>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup Condition="'$(TargetFramework)' == 'net5.0'">
|
||||
|
@ -31,6 +31,7 @@
|
||||
color: #45494c;
|
||||
border-radius: 2px;
|
||||
margin-top: 0.5rem;
|
||||
height: 40px;
|
||||
position: relative;
|
||||
|
||||
.captcha-bar-bg {
|
||||
@ -89,4 +90,3 @@
|
||||
position: absolute;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
|
File diff suppressed because one or more lines are too long
@ -777,6 +777,7 @@ a, a:hover, a:focus {
|
||||
color: #45494c;
|
||||
border-radius: 2px;
|
||||
margin-top: 0.5rem;
|
||||
height: 40px;
|
||||
position: relative;
|
||||
}
|
||||
.captcha-footer .captcha-bar-bg {
|
||||
|
File diff suppressed because one or more lines are too long
@ -106,7 +106,7 @@ public class ButtonTest : BootstrapBlazorTestBase
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task IsAsync_Ok()
|
||||
public void IsAsync_Ok()
|
||||
{
|
||||
// 同步点击
|
||||
var clicked = false;
|
||||
@ -134,7 +134,8 @@ public class ButtonTest : BootstrapBlazorTestBase
|
||||
});
|
||||
b.Click();
|
||||
Assert.False(clicked);
|
||||
await tcs.Task;
|
||||
tcs.Task.Wait();
|
||||
cut.WaitForState(() => tcs.Task.Result);
|
||||
Assert.True(clicked);
|
||||
|
||||
// 同步无刷新点击
|
||||
@ -169,7 +170,8 @@ public class ButtonTest : BootstrapBlazorTestBase
|
||||
b.Click();
|
||||
Assert.False(clicked);
|
||||
Assert.True(cut.Instance.IsDisabled);
|
||||
await tcs.Task;
|
||||
tcs.Task.Wait();
|
||||
cut.WaitForState(() => tcs.Task.Result);
|
||||
Assert.True(clicked);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user