Skip to content

Commit b7e4183

Browse files
committed
Use Submit on Form instead of button click to fix test
1 parent 67d392b commit b7e4183

File tree

1 file changed

+1
-1
lines changed
  • tests/LinkDotNet.Blog.IntegrationTests/Web/Features/AboutMe/Components

1 file changed

+1
-1
lines changed

tests/LinkDotNet.Blog.IntegrationTests/Web/Features/AboutMe/Components/TalksTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public void WhenAddingTalkThenDisplayedToUser()
2828
cut.Find("#talk-date").Change(new DateTime(2022, 10, 2));
2929
cut.Find("#talk-content").Input("text");
3030

31-
cut.Find("#talk-submit").Click();
31+
cut.Find("form").Submit();
3232

3333
cut.WaitForState(() => cut.HasComponent<TalkEntry>());
3434
var entry = cut.FindComponent<TalkEntry>();

0 commit comments

Comments
 (0)