Skip to content

Commit 9a9abbf

Browse files
committed
Fix test for non-existent element path in GetSubmodelElementFileAttachment
1 parent fd870e2 commit 9a9abbf

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

source/AAS.TwinEngine.Plugin.TestPlugin.PlaywrightTests/SubmodelRepository/GetSubmodelElementsFileAttachmentTest.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public async Task GetSubmodelElementFileAttachment_WhenElementIsNotFile_ShouldRe
3838
public async Task GetSubmodelElementFileAttachment_WhenElementPathDoesNotExist_ShouldReturn404()
3939
{
4040
// Arrange
41-
var missingPath = "Documents[999].DocumentVersions[0].DigitalFiles[0]";
41+
var missingPath = "Documents[0].DocumentVersions[0].VersionFile";
4242
var url = $"/submodels/{SubmodelIdentifierHandoverDocumentation}/submodel-elements/{missingPath}/attachment";
4343

4444
// Act
@@ -62,4 +62,5 @@ public async Task GetSubmodelElementFileAttachment_WhenSubmodelDoesNotExist_Shou
6262
// Assert
6363
Assert.Equal(404, response.Status);
6464
}
65+
6566
}

0 commit comments

Comments
 (0)