Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
xsalonx committed Aug 1, 2024
1 parent 328849e commit e87b1d9
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions test/public/qcFlags/gaqOverview.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,16 +97,16 @@ module.exports = () => {
],
]);

await waitForNavigation(page, () => pressElement(page, 'h2:nth-of-type(2) a'));
await waitForNavigation(page, () => pressElement(page, '#row106-EMC a'));
await pressElement(page, '#flag-type-panel .popover-trigger');
await waitForNavigation(page, () => pressElement(page, 'h2:nth-of-type(2) a', true));
await waitForNavigation(page, () => pressElement(page, '#row106-EMC a', true));
await pressElement(page, '#flag-type-panel .popover-trigger', true);
await pressElement(page, '#flag-type-dropdown-option-3', true);

await page.waitForSelector('button#submit[disabled]', { hidden: true, timeout: 250 });
await waitForNavigation(page, () => pressElement(page, 'button#submit'));
await waitForNavigation(page, () => pressElement(page, 'button#submit', true));

await waitForNavigation(page, () => pressElement(page, 'h2:nth-of-type(2) a'));
await waitForNavigation(page, () => pressElement(page, '#row106-globalAggregatedQuality a'));
await waitForNavigation(page, () => pressElement(page, 'h2:nth-of-type(2) a', true));
await waitForNavigation(page, () => pressElement(page, '#row106-globalAggregatedQuality a', true));

expect(await getTableContent(page)).to.have.all.deep.ordered.members([
[
Expand Down Expand Up @@ -171,21 +171,21 @@ module.exports = () => {
// Verify QC flag of CPV detector
expect(await getPopoverInnerText(await page.waitForSelector('tbody tr:nth-of-type(2) td:nth-of-type(4) .popover-trigger')))
.to.be.equal('This flag is not verified');
await waitForNavigation(page, () => pressElement(page, 'tbody tr:nth-of-type(2) td:nth-of-type(4) a'));
await pressElement(page, '#verify-qc-flag');
await pressElement(page, '#submit');
await waitForNavigation(page, () => pressElement(page, '#qc-flag-details-dataPass a'));
await waitForNavigation(page, () => pressElement(page, '#row106-globalAggregatedQuality a'));
await waitForNavigation(page, () => pressElement(page, 'tbody tr:nth-of-type(2) td:nth-of-type(4) a', true));
await pressElement(page, '#verify-qc-flag', true);
await pressElement(page, '#submit', true);
await waitForNavigation(page, () => pressElement(page, '#qc-flag-details-dataPass a', true));
await waitForNavigation(page, () => pressElement(page, '#row106-globalAggregatedQuality a', true));
await page.waitForSelector('tbody tr:nth-of-type(2) td:nth-of-type(4) .popover-trigger', { hidden: true });

// Verify QC flag of EMC detector
expect(await getPopoverInnerText(await page.waitForSelector('tbody tr:nth-of-type(2) td:nth-of-type(5) .popover-trigger')))
.to.be.equal('This flag is not verified');
await waitForNavigation(page, () => pressElement(page, 'tbody tr:nth-of-type(2) td:nth-of-type(5) a'));
await pressElement(page, '#verify-qc-flag');
await pressElement(page, '#submit');
await waitForNavigation(page, () => pressElement(page, '#qc-flag-details-dataPass a'));
await waitForNavigation(page, () => pressElement(page, '#row106-globalAggregatedQuality a'));
await pressElement(page, '#verify-qc-flag', true);
await pressElement(page, '#submit', true);
await waitForNavigation(page, () => pressElement(page, '#qc-flag-details-dataPass a', true));
await waitForNavigation(page, () => pressElement(page, '#row106-globalAggregatedQuality a', true));
await page.waitForSelector('tbody tr:nth-of-type(2) td:nth-of-type(5) .popover-trigger', { hidden: true });

await page.waitForSelector('tbody tr:nth-of-type(2) td:nth-of-type(1) .popover-trigger', { hidden: true });
Expand Down

0 comments on commit e87b1d9

Please sign in to comment.