Skip to content

Commit

Permalink
Renamed view to include (managed data streams)
Browse files Browse the repository at this point in the history
  • Loading branch information
yuliacech committed Nov 16, 2020
1 parent 1048166 commit 33469e4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export interface DataStreamsTabTestBed extends TestBed<TestSubjects> {
goToDataStreamsList: () => void;
clickEmptyPromptIndexTemplateLink: () => void;
clickIncludeStatsSwitch: () => void;
clickViewManagedSwitch: () => void;
clickIncludeManagedSwitch: () => void;
clickReloadButton: () => void;
clickNameAt: (index: number) => void;
clickIndicesAt: (index: number) => void;
Expand Down Expand Up @@ -81,7 +81,7 @@ export const setup = async (overridingDependencies: any = {}): Promise<DataStrea
find('includeStatsSwitch').simulate('click');
};

const clickViewManagedSwitch = () => {
const clickIncludeManagedSwitch = () => {
const { find } = testBed;
find('includeManagedSwitch').simulate('click');
};
Expand Down Expand Up @@ -189,7 +189,7 @@ export const setup = async (overridingDependencies: any = {}): Promise<DataStrea
goToDataStreamsList,
clickEmptyPromptIndexTemplateLink,
clickIncludeStatsSwitch,
clickViewManagedSwitch,
clickIncludeManagedSwitch,
clickReloadButton,
clickNameAt,
clickIndicesAt,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ describe('Data Streams tab', () => {
]);
});

test('turning off "View managed" switch hides managed data streams', async () => {
test('turning off "Include managed" switch hides managed data streams', async () => {
const { exists, actions, component, table } = testBed;
let { tableCellsValues } = table.getMetaData('dataStreamTable');

Expand All @@ -441,7 +441,7 @@ describe('Data Streams tab', () => {
expect(exists('includeManagedSwitch')).toBe(true);

await act(async () => {
actions.clickViewManagedSwitch();
actions.clickIncludeManagedSwitch();
});
component.update();

Expand Down

0 comments on commit 33469e4

Please sign in to comment.