fix: wrong button type in submit test cases (#2836)

https://github.com/denoland/fresh/pull/2833 breaks some tests where the
button must be of type `submit` rather than `button`. This PR fixes
this.
This commit is contained in:
Tim Reichen
2025-03-05 23:27:29 +01:00
committed by GitHub
parent bbfea7538b
commit 4e6bed87a1
+4 -4
View File
@@ -1759,7 +1759,7 @@ Deno.test({
</Partial> </Partial>
<SelfCounter /> <SelfCounter />
<button <button
type="button" type="submit"
class="update" class="update"
name="submitter" name="submitter"
value="sub" value="sub"
@@ -1813,7 +1813,7 @@ Deno.test({
</Partial> </Partial>
<SelfCounter /> <SelfCounter />
<button <button
type="button" type="submit"
class="update" class="update"
name="submitter" name="submitter"
value="sub" value="sub"
@@ -1871,7 +1871,7 @@ Deno.test({
</Partial> </Partial>
<SelfCounter /> <SelfCounter />
<button <button
type="button" type="submit"
class="update" class="update"
name="submitter" name="submitter"
value="sub" value="sub"
@@ -1931,7 +1931,7 @@ Deno.test({
<p class="init">init</p> <p class="init">init</p>
</Partial> </Partial>
<SelfCounter /> <SelfCounter />
<button type="button" class="update"> <button type="submit" class="update">
update update
</button> </button>
</form> </form>