Skip to content

Commit

Permalink
Merge pull request chpladmin#1274 from athomas-git/OCD-4442
Browse files Browse the repository at this point in the history
OCD 4442: Fix to AQA failures on cms-widget and collections pages
  • Loading branch information
athomas-git authored Jan 10, 2024
2 parents 47ba2ab + 4593857 commit 87e00b2
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 18 deletions.
10 changes: 5 additions & 5 deletions e2e/components/cms-widget/cms-widget.readonly.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import Hooks from '../../utilities/hooks';

import CmsWidgetComponent from './cms-widget.po';

const listingId1 = 9851;
const listingId1 = 11084;
const listingId2 = 10974;
const listingId3 = 10964;
const search1 = '2621'; // developer code for listingId1
const search1 = '1043'; // developer code for listingId1
const search2 = '3121'; // developer code for listingId2
const chplPublicGuide = 'https://www.healthit.gov/sites/default/files/policy/chpl_public_user_guide.pdf';
const cmsReverseLookup = '#/resources/cms-lookup';
Expand Down Expand Up @@ -61,7 +61,7 @@ describe('on cms widget', () => {
});
});

describe('if a listing added meet 80% of base criteria (View with partial products selected) - ', () => {
describe('if a listing added meet 70% of base criteria (View with partial products selected) - ', () => {
beforeAll(() => {
search.open();
search.searchForText(search1);
Expand All @@ -70,8 +70,8 @@ describe('on cms widget', () => {
});

it('should have progress bar with correct text and value', async () => {
await expect(await cms.progressBarText.getText()).toBe('80% Base Criteria Met');
await expect(await (await cms.progressBarValue()).getAttribute('aria-valuenow')).toBe('80');
await expect(await cms.progressBarText.getText()).toBe('70% Base Criteria Met');
await expect(await (await cms.progressBarValue()).getAttribute('aria-valuenow')).toBe('70');
});

it('should have missing base criteria list', async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ describe('the Api Documentation collection page', () => {
await page.resetFilters();
});

it('should filter on edition', async () => {
await page.removeFilter('Certification Edition', '2015');
it('should filter on ONC-ACB', async () => {
await page.removeFilter('ONC-ACB', 'Drummond Group');
countAfter = await page.getTotalResultCount();
await expect(countAfter).toBeLessThan(countBefore);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ describe('the Real World Testing collection page', () => {
await page.resetFilters();
});

it('should filter on edition', async () => {
await page.removeFilter('Certification Edition', '2015');
it('should filter on ONC-ACB', async () => {
await page.removeFilter('ONC-ACB', 'Drummond Group');
countAfter = await page.getTotalResultCount();
await expect(countAfter).toBeLessThan(countBefore);
});
Expand Down
6 changes: 0 additions & 6 deletions e2e/pages/collections/search/search.readonly.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,6 @@ describe('the Search page', () => {
await page.resetFilters();
});

it('should filter on edition', async () => {
await page.removeFilter('Certification Edition', '2015');
countAfter = await page.getTotalResultCount();
await expect(countAfter).toBeLessThan(countBefore);
});

xit('should filter on cqms', async () => {
await page.setListFilter('cqms', 'CMS2');
countAfter = await page.getTotalResultCount();
Expand Down
4 changes: 2 additions & 2 deletions e2e/pages/collections/sed/sed.readonly.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ describe('the SED Information for 2015 Edition Products collection page', () =>
await page.resetFilters();
});

it('should filter on edition', async () => {
await page.removeFilter('Certification Edition', '2015');
it('should filter on ONC-ACB', async () => {
await page.removeFilter('ONC-ACB', 'Drummond Group');
countAfter = await page.getTotalResultCount();
await expect(countAfter).toBeLessThan(countBefore);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ describe('the quarterly surveillance reporting page', () => {

describe('when working with future reports', () => {
const acb = 'Drummond Group';
const year = 2023;
const year = 2024;
const quarter = 'Q4';
const timestamp = Date.now();

Expand Down

0 comments on commit 87e00b2

Please sign in to comment.