mirror of
https://github.com/apache/superset.git
synced 2026-07-19 21:25:38 +00:00
chore(deps-dev): bump eslint-plugin-jest-dom from 3.6.5 to 5.5.0 in /superset-frontend (#31217)
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Joe Li <joe@preset.io>
This commit is contained in:
@@ -59,9 +59,9 @@ const setup = (queryEditor: QueryEditor, store?: Store) =>
|
||||
describe('SqlEditorTabHeader', () => {
|
||||
it('renders name', () => {
|
||||
const { queryByText } = setup(defaultQueryEditor, mockStore(initialState));
|
||||
expect(queryByText(defaultQueryEditor.name)).toBeTruthy();
|
||||
expect(queryByText(extraQueryEditor1.name)).toBeFalsy();
|
||||
expect(queryByText(extraQueryEditor2.name)).toBeFalsy();
|
||||
expect(queryByText(defaultQueryEditor.name)).toBeInTheDocument();
|
||||
expect(queryByText(extraQueryEditor1.name)).not.toBeInTheDocument();
|
||||
expect(queryByText(extraQueryEditor2.name)).not.toBeInTheDocument();
|
||||
});
|
||||
|
||||
it('renders name from unsaved changes', () => {
|
||||
@@ -79,10 +79,10 @@ describe('SqlEditorTabHeader', () => {
|
||||
},
|
||||
}),
|
||||
);
|
||||
expect(queryByText(expectedTitle)).toBeTruthy();
|
||||
expect(queryByText(defaultQueryEditor.name)).toBeFalsy();
|
||||
expect(queryByText(extraQueryEditor1.name)).toBeFalsy();
|
||||
expect(queryByText(extraQueryEditor2.name)).toBeFalsy();
|
||||
expect(queryByText(expectedTitle)).toBeInTheDocument();
|
||||
expect(queryByText(defaultQueryEditor.name)).not.toBeInTheDocument();
|
||||
expect(queryByText(extraQueryEditor1.name)).not.toBeInTheDocument();
|
||||
expect(queryByText(extraQueryEditor2.name)).not.toBeInTheDocument();
|
||||
});
|
||||
|
||||
it('renders current name for unrelated unsaved changes', () => {
|
||||
@@ -100,10 +100,10 @@ describe('SqlEditorTabHeader', () => {
|
||||
},
|
||||
}),
|
||||
);
|
||||
expect(queryByText(defaultQueryEditor.name)).toBeTruthy();
|
||||
expect(queryByText(unrelatedTitle)).toBeFalsy();
|
||||
expect(queryByText(extraQueryEditor1.name)).toBeFalsy();
|
||||
expect(queryByText(extraQueryEditor2.name)).toBeFalsy();
|
||||
expect(queryByText(defaultQueryEditor.name)).toBeInTheDocument();
|
||||
expect(queryByText(unrelatedTitle)).not.toBeInTheDocument();
|
||||
expect(queryByText(extraQueryEditor1.name)).not.toBeInTheDocument();
|
||||
expect(queryByText(extraQueryEditor2.name)).not.toBeInTheDocument();
|
||||
});
|
||||
|
||||
describe('with dropdown menus', () => {
|
||||
|
||||
Reference in New Issue
Block a user