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
…) (elastic#115139)

* fix feature controls functional test

* target test-subj attr instead of class

Co-authored-by: Kevin Lacabane <kevin.lacabane@elastic.co>
  • Loading branch information
matschaffer and klacabane authored Oct 15, 2021
1 parent 588c5d1 commit 86149f0
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 86149f0

Please sign in to comment.