Skip to content
This repository has been archived by the owner on Jan 5, 2024. It is now read-only.

Commit

Permalink
[feat]write a test case
Browse files Browse the repository at this point in the history
  • Loading branch information
teacher-zhou committed Nov 29, 2022
1 parent b390393 commit 7177440
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion doc/TDesign.Docs.Shared/Pages/Components/PopupPage.razor
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@
<TPopup Content=""弹出层的内容"" Trigger=""PopupTrigger.Click"">
<TButton>点击</TButton>
</TPopup>

<TPopup Content=""弹出层的内容"" Trigger=""PopupTrigger.Hover"">
<TButton>悬浮鼠标</TButton>
</TPopup>
Expand Down
9 changes: 9 additions & 0 deletions src/TDesign.Test/Components/PopupTest.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
namespace TDesign.Test.Components;
public class PopupTest : TestBase<TPopup>
{
[Fact(DisplayName = "Popup - 组件渲染")]
public void Test_Popup_Render()
{
GetComponent().Should().HaveClass("t-popup");
}
}

0 comments on commit 7177440

Please sign in to comment.