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:
zhangpeihang 2023-09-07 11:00:26 +08:00 committed by GitHub
parent 202d32ed37
commit 9171b1c2c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 10 additions and 7 deletions

View File

@ -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'">

View File

@ -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

View File

@ -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

View File

@ -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);
}