Skip to content

Commit

Permalink
changing reg expressions to tab id
Browse files Browse the repository at this point in the history
  • Loading branch information
bhavyarm committed Apr 3, 2020
1 parent f49aaa6 commit a5571e9
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 @@ -89,7 +89,7 @@ export class FeatureDirectory extends React.Component {
renderTabs = () => {
return this.tabs.map((tab, index) => (
<EuiTab
data-test-subj={tab.name.replace('&', '').replace(/\s/g, '')}
data-test-subj={`tab-${tab.id}`}
onClick={() => this.onSelectedTabChanged(tab.id)}
isSelected={tab.id === this.state.selectedTabId}
key={index}
Expand Down
4 changes: 2 additions & 2 deletions test/functional/page_objects/home_page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,11 @@ export function HomePageProvider({ getService, getPageObjects }: FtrProviderCont
}

async clickVisualizeExplorePlugins() {
await testSubjects.click('DataExplorationVisualization');
await testSubjects.click('tab-data');
}

async clickAdminPlugin() {
await testSubjects.click('Administrative');
await testSubjects.click('tab-admin');
}

async clickOnConsole() {
Expand Down

0 comments on commit a5571e9

Please sign in to comment.