Skip to content

Commit 41e54ac

Browse files
committed
Update test for non-enhanced form
1 parent 78bf7d8 commit 41e54ac

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

src/Components/test/E2ETest/ServerRenderingTests/FormHandlingTests/FormWithParentBindingContextTest.cs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1224,10 +1224,8 @@ public void PostingFormWithErrorsDoesNotExceedMaximumErrors()
12241224
DispatchToFormCore(dispatchToForm);
12251225
}
12261226

1227-
[Theory]
1228-
[InlineData(true)]
1229-
[InlineData(false)]
1230-
public void CanBindToFormWithFiles(bool suppressEnhancedNavigation)
1227+
[Fact]
1228+
public void CanBindToFormWithFiles()
12311229
{
12321230
var profilePicture = TempFile.Create(_tempDirectory, "txt", "This is a profile picture.");
12331231
var headerPhoto = TempFile.Create(_tempDirectory, "txt", "This is a header picture.");
@@ -1237,7 +1235,7 @@ public void CanBindToFormWithFiles(bool suppressEnhancedNavigation)
12371235
{
12381236
Url = "forms/with-files",
12391237
FormCssSelector = "form",
1240-
SuppressEnhancedNavigation = suppressEnhancedNavigation,
1238+
FormIsEnhanced = false,
12411239
UpdateFormAction = () =>
12421240
{
12431241
Browser.Exists(By.CssSelector("input[name='Model.ProfilePicture']")).SendKeys(profilePicture.Path);

src/Components/test/testassets/Components.TestServer/RazorComponents/Pages/Forms/FormsWithFiles.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
<h2>Forms With Files</h2>
55

6-
<EditForm Model="Model" method="POST" OnValidSubmit="DisplaySuccess" FormName="fileForm" enctype="multipart/form-data">
6+
<EditForm Model="Model" method="post" OnValidSubmit="DisplaySuccess" FormName="fileForm" enctype="multipart/form-data">
77
<ValidationSummary />
88
<div>
99
<label for="Model.ProfilePicture">

0 commit comments

Comments
 (0)