From b433242a0f40b9b45fe1420a8bf1fbafa9476d5e Mon Sep 17 00:00:00 2001 From: ErikJohnsonLRS Date: Thu, 11 Jul 2024 12:18:43 -0500 Subject: [PATCH] Adding test to validate that index does not change on next within wizard component --- tests/Core/Wizard/FluentWizardTests.razor | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/Core/Wizard/FluentWizardTests.razor b/tests/Core/Wizard/FluentWizardTests.razor index 4aedae78c3..5ded049fb1 100644 --- a/tests/Core/Wizard/FluentWizardTests.razor +++ b/tests/Core/Wizard/FluentWizardTests.razor @@ -323,6 +323,8 @@ [Fact] public void FluentWizard_EditForm_EditContextIsInValid_OnNext() { + int stepIndex = 0; + var testRecord1 = new TestRecord { NumberBetween1and10 = 15, @@ -331,9 +333,9 @@ var testRecord2 = new TestRecord { NumberBetween1and10 = 15, - }; + }; - var cut = Render(@ + var cut = Render(@ @@ -367,9 +369,11 @@ void OnFinishHandler() { finishHandled = true; + } Assert.False(finishHandled); + Assert.Equal(0, stepIndex); } [Fact]