Skip to content

Commit

Permalink
Adjust KPIs data-test-subj
Browse files Browse the repository at this point in the history
  • Loading branch information
crespocarlos committed Aug 7, 2023
1 parent 367638a commit 4cca4c7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export const Tile = ({
<EuiPanelStyled
hasShadow={false}
paddingSize={error ? 'm' : 'none'}
data-test-subj={`assetDetailsKPI-${id}`}
data-test-subj={`infraAssetDetailsKPI${id}`}
>
{error ? (
<EuiFlexGroup
Expand Down Expand Up @@ -100,7 +100,7 @@ export const Tile = ({
anchorClassName="eui-fullWidth"
>
<LensWrapper
id={`infraAssetDetailsKPIGrid${id}Tile`}
id={`infraAssetDetailsKPI${id}`}
attributes={attributes}
style={{ height: MIN_HEIGHT }}
extraActions={extraActions}
Expand Down
2 changes: 1 addition & 1 deletion x-pack/test/functional/page_objects/infra_hosts_view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ export function InfraHostsViewProvider({ getService }: FtrProviderContext) {
// Asset Details Flyout Tabs
async getAssetDetailsKPITileValue(type: string) {
const container = await testSubjects.find('infraAssetDetailsKPIGrid');
const element = await container.findByTestSubject(`assetDetailsKPI-${type}`);
const element = await container.findByTestSubject(`infraAssetDetailsKPI${type}`);
const div = await element.findByClassName('echMetricText__value');
return div.getAttribute('title');
},
Expand Down

0 comments on commit 4cca4c7

Please sign in to comment.