Skip to content

Commit

Permalink
fix grouping by resource test
Browse files Browse the repository at this point in the history
  • Loading branch information
alexreal1314 committed Jan 15, 2025
1 parent 70309ce commit 54e835c
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
it('groups findings by resource and sort by compliance score desc', async () => {
const groupSelector = await findings.groupSelector();
await groupSelector.openDropDown();
await groupSelector.setValue('Resource');
await groupSelector.setValue('Resource ID');

const grouping = await findings.findingsGrouping();

Expand Down Expand Up @@ -414,7 +414,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
await groupSelector.openDropDown();
await groupSelector.setValue('None');
await groupSelector.openDropDown();
await groupSelector.setValue('Resource');
await groupSelector.setValue('Resource ID');

// Filter bar uses the field's customLabel in the DataView
await filterBar.addFilter({ field: 'rule.name', operation: 'is', value: ruleName1 });
Expand Down Expand Up @@ -515,12 +515,12 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {

const groupSelector = await findings.groupSelector();
await groupSelector.openDropDown();
await groupSelector.setValue('Resource');
await groupSelector.setValue('Resource ID');

const grouping = await findings.findingsGrouping();

const groupCount = await grouping.getGroupCount();
expect(groupCount).to.be(`${resourceGroupCount + 1} resources`);
expect(groupCount).to.be(`${resourceGroupCount} resources`);

const unitCount = await grouping.getUnitCount();
expect(unitCount).to.be(`${findingsCount + 1} findings`);
Expand Down

0 comments on commit 54e835c

Please sign in to comment.