Add test workaround for inconsistent extension handling
- Allow for either naming convention - Issue MatterHackers/MCCentral#4470 Test fails to add items to print queue
This commit is contained in:
parent
0758361f0f
commit
96831c8424
1 changed files with 7 additions and 1 deletions
|
|
@ -1033,7 +1033,13 @@ namespace MatterHackers.MatterControl.Tests.Automation
|
|||
foreach (string assetName in assetNames)
|
||||
{
|
||||
string friendlyName = Path.GetFileNameWithoutExtension(assetName);
|
||||
Assert.IsTrue(testRunner.WaitForName($"Row Item {friendlyName}"), $"{friendlyName} part should exist after adding");
|
||||
string fileName = Path.GetFileName(assetName);
|
||||
|
||||
// Look for either expected format (print queue differs from libraries)
|
||||
Assert.IsTrue(
|
||||
testRunner.WaitForName($"Row Item {friendlyName}", 2)
|
||||
|| testRunner.WaitForName($"Row Item {fileName}", 2),
|
||||
$"{friendlyName} part should exist after adding");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue