Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ export function SchemaEditor({
<Controls controls={controls} onChange={updateControls} onRefreshData={onRefreshData} />
)}
<FieldsTable
isLoading={isLoading ?? false}
controls={controls}
withToolbar={withToolbar}
defaultColumns={defaultColumns}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,15 @@ import { SchemaField } from './types';
import { FieldType } from './field_type';

export function FieldsTable({
isLoading,
controls,
defaultColumns,
fields,
stream,
withTableActions,
withToolbar,
}: {
isLoading: boolean;
controls: TControls;
defaultColumns: TableColumnName[];
fields: SchemaField[];
Expand Down Expand Up @@ -65,6 +67,11 @@ export function FieldsTable({

return (
<EuiDataGrid
data-test-subj={
isLoading
? 'streamsAppSchemaEditorFieldsTableLoading'
: 'streamsAppSchemaEditorFieldsTableLoaded'
}
aria-label={i18n.translate(
'xpack.streams.streamDetailSchemaEditor.fieldsTable.actionsTitle',
{ defaultMessage: 'Preview' }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { testData, test } from '../fixtures';

const DATA_STREAM_NAME = 'my-data-stream';

test.describe('Classic Streams', { tag: ['@ess'] }, () => {
test.describe('Classic Streams', { tag: ['@ess', '@svlOblt'] }, () => {
test.beforeEach(async ({ kbnClient, esClient, browserAuth, pageObjects }) => {
await kbnClient.importExport.load(testData.KBN_ARCHIVES.DASHBOARD);
await esClient.indices.putIndexTemplate({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import { expect } from '@kbn/scout';
import { testData, test } from '../fixtures';

test.describe.skip('Wired Streams', { tag: ['@ess'] }, () => {
test.describe('Wired Streams', { tag: ['@ess', '@svlOblt'] }, () => {
test.beforeEach(async ({ apiServices, kbnClient, browserAuth, pageObjects }) => {
await kbnClient.importExport.load(testData.KBN_ARCHIVES.DASHBOARD);
await apiServices.streams.enable();
Expand Down Expand Up @@ -70,16 +70,11 @@ test.describe.skip('Wired Streams', { tag: ['@ess'] }, () => {
await page.getByPlaceholder('Search...').fill('attributes');
await page.getByTestId('streamsAppContentRefreshButton').click();

const actionsButtons = page
await expect(page.getByTestId('streamsAppSchemaEditorFieldsTableLoaded')).toBeVisible();
await page
.getByRole('row', { name: 'attributes.custom_field' })
.getByTestId('streamsAppActionsButton');

await actionsButtons.focus();
await actionsButtons.click();

await expect(
page.getByTestId('contextMenuPanelTitle').getByText('Field actions')
).toBeVisible();
.getByTestId('streamsAppActionsButton')
.click();
await page.getByRole('button', { name: 'Map field' }).click();
await page.getByRole('combobox').selectOption('keyword');
await page.getByRole('button', { name: 'Save changes' }).click();
Expand Down