Skip to content

Commit

Permalink
[Stack Monitoring] fix feature controls functional test (elastic#114781)
Browse files Browse the repository at this point in the history
* fix feature controls functional test

* target test-subj attr instead of class
  • Loading branch information
klacabane authored and matschaffer committed Oct 15, 2021
1 parent d2075f6 commit 799f94a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export const PageTemplate: React.FC<PageTemplateProps> = ({
};

return (
<div className="app-container">
<div className="app-container" data-test-subj="monitoringAppContainer">
<ActionMenu>
<AlertsDropdown />
</ActionMenu>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div class="app-container">
<div class="app-container" data-test-subj="monitoringAppContainer">
<div class="euiFlexGroup euiFlexGroup--gutterLarge euiFlexGroup--justifyContentSpaceBetween euiFlexGroup--directionRow euiFlexGroup--responsive">
<div class="euiFlexItem euiFlexItem--flexGrowZero">
<div class="euiFlexGroup euiFlexGroup--gutterNone euiFlexGroup--justifyContentSpaceEvenly euiFlexGroup--responsive euiFlexGroup--directionColumn">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
basePath: '/s/custom_space',
});

const exists = await find.existsByCssSelector('monitoring-main');
const exists = await find.existsByCssSelector('[data-test-subj="monitoringAppContainer"]');
expect(exists).to.be(true);
});
});
Expand Down

0 comments on commit 799f94a

Please sign in to comment.