@elisra-devops/docgen-data-provider 1.97.0 → 1.99.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4828,6 +4828,48 @@ describe('ResultDataProvider', () => {
4828
4828
  expect(res).toHaveLength(1);
4829
4829
  expect(res[0].stepNo).toBeUndefined();
4830
4830
  });
4831
+ it('should keep runless step rows even when suite testCasesItems entry is missing', () => {
4832
+ const testData = [
4833
+ {
4834
+ testGroupName: 'G',
4835
+ testPointsItems: [{ testCaseId: 217916, testCaseName: 'TC 217916', testCaseUrl: 'u' }],
4836
+ testCasesItems: [],
4837
+ },
4838
+ ];
4839
+ const iterations = [
4840
+ {
4841
+ testCaseId: 217916,
4842
+ lastRunId: undefined,
4843
+ lastResultId: undefined,
4844
+ iteration: {
4845
+ actionResults: [
4846
+ {
4847
+ stepIdentifier: '16',
4848
+ stepPosition: '1',
4849
+ action: 'A',
4850
+ expected: 'E',
4851
+ outcome: 'Unspecified',
4852
+ isSharedStepTitle: false,
4853
+ errorMessage: '',
4854
+ },
4855
+ ],
4856
+ },
4857
+ testCaseResult: 'Not Run',
4858
+ comment: '',
4859
+ runBy: { displayName: 'u' },
4860
+ failureType: '',
4861
+ executionDate: '',
4862
+ configurationName: '',
4863
+ relatedRequirements: [],
4864
+ relatedBugs: [],
4865
+ relatedCRs: [],
4866
+ customFields: {},
4867
+ },
4868
+ ];
4869
+ const res = resultDataProvider.alignStepsWithIterationsTestReporter(testData, iterations, ['includeSteps@stepsRunProperties', 'stepRunStatus@stepsRunProperties'], true);
4870
+ expect(res).toHaveLength(1);
4871
+ expect(res[0]).toEqual(expect.objectContaining({ stepNo: '1', stepStatus: 'Not Run' }));
4872
+ });
4831
4873
  });
4832
4874
  describe('fetchOpenPcrData', () => {
4833
4875
  it('should populate both trace maps using linked work items', async () => {