We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c94e14 commit 0e7c0a7Copy full SHA for 0e7c0a7
tests/LinkDotNet.Blog.IntegrationTests/Web/Shared/ProfileTests.cs
@@ -138,6 +138,20 @@ public void ShouldSetNewOrderWhenItemDragAndDropped()
138
entryToDb.Should().Be(source);
139
}
140
141
+ [Fact]
142
+ public void ShouldNotChangeSortOrderWhenDroppedOnItself()
143
+ {
144
+ var source = new ProfileInformationEntryBuilder().WithSortOrder(200).Build();
145
+ var (repo, _) = RegisterServices();
146
+ SetupGetAll(repo, source);
147
+ var cut = RenderComponent<Profile>(p => p.Add(s => s.IsAuthenticated, true));
148
+
149
+ cut.FindAll("li")[0].Drag();
150
+ cut.FindAll("li")[0].Drop();
151
152
+ source.SortOrder.Should().Be(200);
153
+ }
154
155
private static AppConfiguration CreateEmptyConfiguration()
156
{
157
return new()
0 commit comments