test: make AI scenario matching order independent
This commit is contained in:
1 parent
5cd40b5c53
commit
6d1ab12788
2 files changed
+45
-19
No files matched your search
@@ -105,6 +105,18 @@ describe("AI authoring evaluation", () => {
|
||||
if (!testCase) throw new Error("Expected the Portainer evaluation case");
|
||||
const portainer = customWidgetDefinitionSchema.parse(PORTAINER_REFERENCE_WIDGET);
|
||||
expect(getScenarioAcceptanceIssues(testCase, portainer)).toEqual([]);
|
||||
expect(
|
||||
getScenarioAcceptanceIssues(
|
||||
{
|
||||
...testCase,
|
||||
acceptance: {
|
||||
...testCase.acceptance,
|
||||
requestRules: testCase.acceptance.requestRules.toReversed(),
|
||||
},
|
||||
},
|
||||
portainer,
|
||||
),
|
||||
).toEqual([]);
|
||||
|
||||
const wrongBinding = customWidgetDefinitionSchema.parse({
|
||||
...portainer,
|
||||
|
||||
Reference in new issue
Block a user