Skip to content

Commit

Permalink
✅ Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
C-Valen committed Nov 26, 2024
1 parent 21c6849 commit ad9e242
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@ This module has no trackers associated"><i data-v-2d3c4208="" class="bi bi-excla
<tr data-v-89a61d08="">
<th data-v-89a61d08="">Bug ID</th>
<th data-v-89a61d08="">Module</th>
<th data-v-89a61d08="">Component</th>
<th data-v-89a61d08="">Product Stream</th>
<th data-v-89a61d08=""><span data-v-89a61d08="" class="align-bottom me-1">Status</span><button data-v-89a61d08="" id="status-filter" type="button" class="btn btn-sm border-0 p-0" data-bs-toggle="dropdown" data-bs-auto-close="outside" aria-expanded="false"><i data-v-89a61d08="" class="bi bi-funnel" title=""></i></button>
<ul data-v-89a61d08="" class="dropdown-menu" aria-labelledby="status-filter">
Expand All @@ -255,6 +256,7 @@ This module has no trackers associated"><i data-v-2d3c4208="" class="bi bi-excla
<tr data-v-89a61d08="">
<td data-v-89a61d08=""><a data-v-89a61d08="" target="_blank">XXXX-0006 <i data-v-89a61d08="" class="bi-box-arrow-up-right"></i></a></td>
<td data-v-89a61d08="" title="openshift-5">openshift-5</td>
<td data-v-89a61d08="" title="openshift-5-1">openshift-5-1</td>
<td data-v-89a61d08="" title="xxxx-0-006">xxxx-0-006</td>
<td data-v-89a61d08="">CLOSED</td>
<td data-v-89a61d08=""></td>
Expand All @@ -264,6 +266,7 @@ This module has no trackers associated"><i data-v-2d3c4208="" class="bi bi-excla
<tr data-v-89a61d08="">
<td data-v-89a61d08=""><a data-v-89a61d08="" target="_blank">XXXX-0005 <i data-v-89a61d08="" class="bi-box-arrow-up-right"></i></a></td>
<td data-v-89a61d08="" title="openshift-5">openshift-5</td>
<td data-v-89a61d08="" title="openshift-5-1">openshift-5-1</td>
<td data-v-89a61d08="" title="xxxx-0-005">xxxx-0-005</td>
<td data-v-89a61d08="">NEW</td>
<td data-v-89a61d08=""></td>
Expand All @@ -273,6 +276,7 @@ This module has no trackers associated"><i data-v-2d3c4208="" class="bi bi-excla
<tr data-v-89a61d08="">
<td data-v-89a61d08=""><a data-v-89a61d08="" target="_blank">XXXX-0004 <i data-v-89a61d08="" class="bi-box-arrow-up-right"></i></a></td>
<td data-v-89a61d08="" title="openshift-1">openshift-1</td>
<td data-v-89a61d08="" title="openshift-1-1">openshift-1-1</td>
<td data-v-89a61d08="" title="xxxx-0-004">xxxx-0-004</td>
<td data-v-89a61d08="">CLOSED</td>
<td data-v-89a61d08=""></td>
Expand All @@ -282,6 +286,7 @@ This module has no trackers associated"><i data-v-2d3c4208="" class="bi bi-excla
<tr data-v-89a61d08="">
<td data-v-89a61d08=""><a data-v-89a61d08="" target="_blank">XXXX-0003 <i data-v-89a61d08="" class="bi-box-arrow-up-right"></i></a></td>
<td data-v-89a61d08="" title="openshift-1">openshift-1</td>
<td data-v-89a61d08="" title="openshift-1-1">openshift-1-1</td>
<td data-v-89a61d08="" title="xxxx-0-003">xxxx-0-003</td>
<td data-v-89a61d08="">NEW</td>
<td data-v-89a61d08=""></td>
Expand All @@ -291,6 +296,7 @@ This module has no trackers associated"><i data-v-2d3c4208="" class="bi bi-excla
<tr data-v-89a61d08="">
<td data-v-89a61d08=""><a data-v-89a61d08="" target="_blank">XXXX-0002 <i data-v-89a61d08="" class="bi-box-arrow-up-right"></i></a></td>
<td data-v-89a61d08="" title="openshift-1">openshift-1</td>
<td data-v-89a61d08="" title="openshift-1-1">openshift-1-1</td>
<td data-v-89a61d08="" title="xxxx-0-002">xxxx-0-002</td>
<td data-v-89a61d08="">CLOSED</td>
<td data-v-89a61d08=""></td>
Expand All @@ -300,6 +306,7 @@ This module has no trackers associated"><i data-v-2d3c4208="" class="bi bi-excla
<tr data-v-89a61d08="">
<td data-v-89a61d08=""><a data-v-89a61d08="" target="_blank">XXXX-0001 <i data-v-89a61d08="" class="bi-box-arrow-up-right"></i></a></td>
<td data-v-89a61d08="" title="openshift-1">openshift-1</td>
<td data-v-89a61d08="" title="openshift-1-1">openshift-1-1</td>
<td data-v-89a61d08="" title="xxxx-0-001">xxxx-0-001</td>
<td data-v-89a61d08="">NEW</td>
<td data-v-89a61d08=""></td>
Expand Down Expand Up @@ -418,6 +425,7 @@ exports[`flawAffects > Correctly renders the component when there are not affect
<tr data-v-89a61d08="">
<th data-v-89a61d08="">Bug ID</th>
<th data-v-89a61d08="">Module</th>
<th data-v-89a61d08="">Component</th>
<th data-v-89a61d08="">Product Stream</th>
<th data-v-89a61d08=""><span data-v-89a61d08="" class="align-bottom me-1">Status</span><button data-v-89a61d08="" id="status-filter" type="button" class="btn btn-sm border-0 p-0" data-bs-toggle="dropdown" data-bs-auto-close="outside" aria-expanded="false"><i data-v-89a61d08="" class="bi bi-funnel" title=""></i></button>
<ul data-v-89a61d08="" class="dropdown-menu" aria-labelledby="status-filter"></ul>
Expand Down Expand Up @@ -683,6 +691,7 @@ This module has no trackers associated"><i data-v-2d3c4208="" class="bi bi-excla
<tr data-v-89a61d08="">
<th data-v-89a61d08="">Bug ID</th>
<th data-v-89a61d08="">Module</th>
<th data-v-89a61d08="">Component</th>
<th data-v-89a61d08="">Product Stream</th>
<th data-v-89a61d08=""><span data-v-89a61d08="" class="align-bottom me-1">Status</span><button data-v-89a61d08="" id="status-filter" type="button" class="btn btn-sm border-0 p-0" data-bs-toggle="dropdown" data-bs-auto-close="outside" aria-expanded="false"><i data-v-89a61d08="" class="bi bi-funnel" title=""></i></button>
<ul data-v-89a61d08="" class="dropdown-menu" aria-labelledby="status-filter">
Expand All @@ -699,6 +708,7 @@ This module has no trackers associated"><i data-v-2d3c4208="" class="bi bi-excla
<tr data-v-89a61d08="">
<td data-v-89a61d08=""><a data-v-89a61d08="" target="_blank">XXXX-0006 <i data-v-89a61d08="" class="bi-box-arrow-up-right"></i></a></td>
<td data-v-89a61d08="" title="openshift-5">openshift-5</td>
<td data-v-89a61d08="" title="openshift-5-1">openshift-5-1</td>
<td data-v-89a61d08="" title="xxxx-0-006">xxxx-0-006</td>
<td data-v-89a61d08="">CLOSED</td>
<td data-v-89a61d08=""></td>
Expand All @@ -708,6 +718,7 @@ This module has no trackers associated"><i data-v-2d3c4208="" class="bi bi-excla
<tr data-v-89a61d08="">
<td data-v-89a61d08=""><a data-v-89a61d08="" target="_blank">XXXX-0005 <i data-v-89a61d08="" class="bi-box-arrow-up-right"></i></a></td>
<td data-v-89a61d08="" title="openshift-5">openshift-5</td>
<td data-v-89a61d08="" title="openshift-5-1">openshift-5-1</td>
<td data-v-89a61d08="" title="xxxx-0-005">xxxx-0-005</td>
<td data-v-89a61d08="">NEW</td>
<td data-v-89a61d08=""></td>
Expand All @@ -717,6 +728,7 @@ This module has no trackers associated"><i data-v-2d3c4208="" class="bi bi-excla
<tr data-v-89a61d08="">
<td data-v-89a61d08=""><a data-v-89a61d08="" target="_blank">XXXX-0004 <i data-v-89a61d08="" class="bi-box-arrow-up-right"></i></a></td>
<td data-v-89a61d08="" title="openshift-1">openshift-1</td>
<td data-v-89a61d08="" title="openshift-1-1">openshift-1-1</td>
<td data-v-89a61d08="" title="xxxx-0-004">xxxx-0-004</td>
<td data-v-89a61d08="">CLOSED</td>
<td data-v-89a61d08=""></td>
Expand All @@ -726,6 +738,7 @@ This module has no trackers associated"><i data-v-2d3c4208="" class="bi bi-excla
<tr data-v-89a61d08="">
<td data-v-89a61d08=""><a data-v-89a61d08="" target="_blank">XXXX-0003 <i data-v-89a61d08="" class="bi-box-arrow-up-right"></i></a></td>
<td data-v-89a61d08="" title="openshift-1">openshift-1</td>
<td data-v-89a61d08="" title="openshift-1-1">openshift-1-1</td>
<td data-v-89a61d08="" title="xxxx-0-003">xxxx-0-003</td>
<td data-v-89a61d08="">NEW</td>
<td data-v-89a61d08=""></td>
Expand All @@ -735,6 +748,7 @@ This module has no trackers associated"><i data-v-2d3c4208="" class="bi bi-excla
<tr data-v-89a61d08="">
<td data-v-89a61d08=""><a data-v-89a61d08="" target="_blank">XXXX-0002 <i data-v-89a61d08="" class="bi-box-arrow-up-right"></i></a></td>
<td data-v-89a61d08="" title="openshift-1">openshift-1</td>
<td data-v-89a61d08="" title="openshift-1-1">openshift-1-1</td>
<td data-v-89a61d08="" title="xxxx-0-002">xxxx-0-002</td>
<td data-v-89a61d08="">CLOSED</td>
<td data-v-89a61d08=""></td>
Expand All @@ -744,6 +758,7 @@ This module has no trackers associated"><i data-v-2d3c4208="" class="bi bi-excla
<tr data-v-89a61d08="">
<td data-v-89a61d08=""><a data-v-89a61d08="" target="_blank">XXXX-0001 <i data-v-89a61d08="" class="bi-box-arrow-up-right"></i></a></td>
<td data-v-89a61d08="" title="openshift-1">openshift-1</td>
<td data-v-89a61d08="" title="openshift-1-1">openshift-1-1</td>
<td data-v-89a61d08="" title="xxxx-0-001">xxxx-0-001</td>
<td data-v-89a61d08="">NEW</td>
<td data-v-89a61d08=""></td>
Expand Down Expand Up @@ -1068,6 +1083,7 @@ This module has no trackers associated"><i data-v-2d3c4208="" class="bi bi-excla
<tr data-v-89a61d08="">
<th data-v-89a61d08="">Bug ID</th>
<th data-v-89a61d08="">Module</th>
<th data-v-89a61d08="">Component</th>
<th data-v-89a61d08="">Product Stream</th>
<th data-v-89a61d08=""><span data-v-89a61d08="" class="align-bottom me-1">Status</span><button data-v-89a61d08="" id="status-filter" type="button" class="btn btn-sm border-0 p-0" data-bs-toggle="dropdown" data-bs-auto-close="outside" aria-expanded="false"><i data-v-89a61d08="" class="bi bi-funnel" title=""></i></button>
<ul data-v-89a61d08="" class="dropdown-menu" aria-labelledby="status-filter">
Expand All @@ -1084,6 +1100,7 @@ This module has no trackers associated"><i data-v-2d3c4208="" class="bi bi-excla
<tr data-v-89a61d08="">
<td data-v-89a61d08=""><a data-v-89a61d08="" target="_blank">XXXX-0006 <i data-v-89a61d08="" class="bi-box-arrow-up-right"></i></a></td>
<td data-v-89a61d08="" title="openshift-5">openshift-5</td>
<td data-v-89a61d08="" title="openshift-5-1">openshift-5-1</td>
<td data-v-89a61d08="" title="xxxx-0-006">xxxx-0-006</td>
<td data-v-89a61d08="">CLOSED</td>
<td data-v-89a61d08=""></td>
Expand All @@ -1093,6 +1110,7 @@ This module has no trackers associated"><i data-v-2d3c4208="" class="bi bi-excla
<tr data-v-89a61d08="">
<td data-v-89a61d08=""><a data-v-89a61d08="" target="_blank">XXXX-0005 <i data-v-89a61d08="" class="bi-box-arrow-up-right"></i></a></td>
<td data-v-89a61d08="" title="openshift-5">openshift-5</td>
<td data-v-89a61d08="" title="openshift-5-1">openshift-5-1</td>
<td data-v-89a61d08="" title="xxxx-0-005">xxxx-0-005</td>
<td data-v-89a61d08="">NEW</td>
<td data-v-89a61d08=""></td>
Expand All @@ -1102,6 +1120,7 @@ This module has no trackers associated"><i data-v-2d3c4208="" class="bi bi-excla
<tr data-v-89a61d08="">
<td data-v-89a61d08=""><a data-v-89a61d08="" target="_blank">XXXX-0004 <i data-v-89a61d08="" class="bi-box-arrow-up-right"></i></a></td>
<td data-v-89a61d08="" title="openshift-1">openshift-1</td>
<td data-v-89a61d08="" title="openshift-1-1">openshift-1-1</td>
<td data-v-89a61d08="" title="xxxx-0-004">xxxx-0-004</td>
<td data-v-89a61d08="">CLOSED</td>
<td data-v-89a61d08=""></td>
Expand All @@ -1111,6 +1130,7 @@ This module has no trackers associated"><i data-v-2d3c4208="" class="bi bi-excla
<tr data-v-89a61d08="">
<td data-v-89a61d08=""><a data-v-89a61d08="" target="_blank">XXXX-0003 <i data-v-89a61d08="" class="bi-box-arrow-up-right"></i></a></td>
<td data-v-89a61d08="" title="openshift-1">openshift-1</td>
<td data-v-89a61d08="" title="openshift-1-1">openshift-1-1</td>
<td data-v-89a61d08="" title="xxxx-0-003">xxxx-0-003</td>
<td data-v-89a61d08="">NEW</td>
<td data-v-89a61d08=""></td>
Expand All @@ -1120,6 +1140,7 @@ This module has no trackers associated"><i data-v-2d3c4208="" class="bi bi-excla
<tr data-v-89a61d08="">
<td data-v-89a61d08=""><a data-v-89a61d08="" target="_blank">XXXX-0002 <i data-v-89a61d08="" class="bi-box-arrow-up-right"></i></a></td>
<td data-v-89a61d08="" title="openshift-1">openshift-1</td>
<td data-v-89a61d08="" title="openshift-1-1">openshift-1-1</td>
<td data-v-89a61d08="" title="xxxx-0-002">xxxx-0-002</td>
<td data-v-89a61d08="">CLOSED</td>
<td data-v-89a61d08=""></td>
Expand All @@ -1129,6 +1150,7 @@ This module has no trackers associated"><i data-v-2d3c4208="" class="bi bi-excla
<tr data-v-89a61d08="">
<td data-v-89a61d08=""><a data-v-89a61d08="" target="_blank">XXXX-0001 <i data-v-89a61d08="" class="bi-box-arrow-up-right"></i></a></td>
<td data-v-89a61d08="" title="openshift-1">openshift-1</td>
<td data-v-89a61d08="" title="openshift-1-1">openshift-1-1</td>
<td data-v-89a61d08="" title="xxxx-0-001">xxxx-0-001</td>
<td data-v-89a61d08="">NEW</td>
<td data-v-89a61d08=""></td>
Expand Down
8 changes: 4 additions & 4 deletions src/components/__tests__/FlawTrackers.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,16 +100,16 @@ describe('flawTrackers', () => {

let trackersTableRows = subject.findAll('.affects-trackers .osim-tracker-card table tbody tr');
let firstTracker = trackersTableRows[0];
expect(firstTracker.find('td:nth-of-type(3)').text()).toBe('xxxx-0-006');
expect(firstTracker.find('td:nth-of-type(4)').text()).toBe('xxxx-0-006');

const componentHeader = subject.find('.affects-trackers table thead tr th:nth-of-type(6)');
const componentHeader = subject.find('.affects-trackers table thead tr th:nth-of-type(7)');
expect(componentHeader.exists()).toBe(true);
expect(componentHeader.text()).toBe('Created date');
await componentHeader.trigger('click');

trackersTableRows = subject.findAll('.affects-trackers .osim-tracker-card table tbody tr');
firstTracker = trackersTableRows[0];
expect(firstTracker.find('td:nth-of-type(3)').text()).toBe('xxxx-0-001');
expect(firstTracker.find('td:nth-of-type(4)').text()).toBe('xxxx-0-001');
});

osimFullFlawTest('Trackers display functional external links', async ({ flaw }) => {
Expand Down Expand Up @@ -156,7 +156,7 @@ describe('flawTrackers', () => {
allTrackersCount: 0,
});
const trackerRow = subject.findAll('.affects-trackers .osim-tracker-card table tbody tr')[0];
const trackerModuleCell = trackerRow.find('td:nth-of-type(3)');
const trackerModuleCell = trackerRow.find('td:nth-of-type(4)');
expect(trackerModuleCell.attributes('title')).toBe('xxxx-0-006');
});

Expand Down
7 changes: 7 additions & 0 deletions src/components/__tests__/__snapshots__/FlawForm.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -739,6 +739,7 @@ This module has no trackers associated"><i data-v-2d3c4208="" class="bi bi-excla
<tr data-v-89a61d08="">
<th data-v-89a61d08="">Bug ID</th>
<th data-v-89a61d08="">Module</th>
<th data-v-89a61d08="">Component</th>
<th data-v-89a61d08="">Product Stream</th>
<th data-v-89a61d08=""><span data-v-89a61d08="" class="align-bottom me-1">Status</span><button data-v-89a61d08="" id="status-filter" type="button" class="btn btn-sm border-0 p-0" data-bs-toggle="dropdown" data-bs-auto-close="outside" aria-expanded="false"><i data-v-89a61d08="" class="bi bi-funnel" title=""></i></button>
<ul data-v-89a61d08="" class="dropdown-menu" aria-labelledby="status-filter">
Expand All @@ -755,6 +756,7 @@ This module has no trackers associated"><i data-v-2d3c4208="" class="bi bi-excla
<tr data-v-89a61d08="">
<td data-v-89a61d08=""><a data-v-89a61d08="" target="_blank">XXXX-0006 <i data-v-89a61d08="" class="bi-box-arrow-up-right"></i></a></td>
<td data-v-89a61d08="" title="openshift-5">openshift-5</td>
<td data-v-89a61d08="" title="openshift-5-1">openshift-5-1</td>
<td data-v-89a61d08="" title="xxxx-0-006">xxxx-0-006</td>
<td data-v-89a61d08="">CLOSED</td>
<td data-v-89a61d08=""></td>
Expand All @@ -764,6 +766,7 @@ This module has no trackers associated"><i data-v-2d3c4208="" class="bi bi-excla
<tr data-v-89a61d08="">
<td data-v-89a61d08=""><a data-v-89a61d08="" target="_blank">XXXX-0005 <i data-v-89a61d08="" class="bi-box-arrow-up-right"></i></a></td>
<td data-v-89a61d08="" title="openshift-5">openshift-5</td>
<td data-v-89a61d08="" title="openshift-5-1">openshift-5-1</td>
<td data-v-89a61d08="" title="xxxx-0-005">xxxx-0-005</td>
<td data-v-89a61d08="">NEW</td>
<td data-v-89a61d08=""></td>
Expand All @@ -773,6 +776,7 @@ This module has no trackers associated"><i data-v-2d3c4208="" class="bi bi-excla
<tr data-v-89a61d08="">
<td data-v-89a61d08=""><a data-v-89a61d08="" target="_blank">XXXX-0004 <i data-v-89a61d08="" class="bi-box-arrow-up-right"></i></a></td>
<td data-v-89a61d08="" title="openshift-1">openshift-1</td>
<td data-v-89a61d08="" title="openshift-1-1">openshift-1-1</td>
<td data-v-89a61d08="" title="xxxx-0-004">xxxx-0-004</td>
<td data-v-89a61d08="">CLOSED</td>
<td data-v-89a61d08=""></td>
Expand All @@ -782,6 +786,7 @@ This module has no trackers associated"><i data-v-2d3c4208="" class="bi bi-excla
<tr data-v-89a61d08="">
<td data-v-89a61d08=""><a data-v-89a61d08="" target="_blank">XXXX-0003 <i data-v-89a61d08="" class="bi-box-arrow-up-right"></i></a></td>
<td data-v-89a61d08="" title="openshift-1">openshift-1</td>
<td data-v-89a61d08="" title="openshift-1-1">openshift-1-1</td>
<td data-v-89a61d08="" title="xxxx-0-003">xxxx-0-003</td>
<td data-v-89a61d08="">NEW</td>
<td data-v-89a61d08=""></td>
Expand All @@ -791,6 +796,7 @@ This module has no trackers associated"><i data-v-2d3c4208="" class="bi bi-excla
<tr data-v-89a61d08="">
<td data-v-89a61d08=""><a data-v-89a61d08="" target="_blank">XXXX-0002 <i data-v-89a61d08="" class="bi-box-arrow-up-right"></i></a></td>
<td data-v-89a61d08="" title="openshift-1">openshift-1</td>
<td data-v-89a61d08="" title="openshift-1-1">openshift-1-1</td>
<td data-v-89a61d08="" title="xxxx-0-002">xxxx-0-002</td>
<td data-v-89a61d08="">CLOSED</td>
<td data-v-89a61d08=""></td>
Expand All @@ -800,6 +806,7 @@ This module has no trackers associated"><i data-v-2d3c4208="" class="bi bi-excla
<tr data-v-89a61d08="">
<td data-v-89a61d08=""><a data-v-89a61d08="" target="_blank">XXXX-0001 <i data-v-89a61d08="" class="bi-box-arrow-up-right"></i></a></td>
<td data-v-89a61d08="" title="openshift-1">openshift-1</td>
<td data-v-89a61d08="" title="openshift-1-1">openshift-1-1</td>
<td data-v-89a61d08="" title="xxxx-0-001">xxxx-0-001</td>
<td data-v-89a61d08="">NEW</td>
<td data-v-89a61d08=""></td>
Expand Down
Loading

0 comments on commit ad9e242

Please sign in to comment.