mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
fix(editor): Change label for unexecuted nodes (#14260)
This commit is contained in:
@@ -191,16 +191,14 @@ describe('VirtualSchema.vue', () => {
|
||||
});
|
||||
});
|
||||
|
||||
it('renders schema for empty data', async () => {
|
||||
it('renders schema for empty data for unexecuted nodes', async () => {
|
||||
const { getAllByText, getAllByTestId } = renderComponent();
|
||||
|
||||
await waitFor(() =>
|
||||
expect(getAllByText("No fields - item(s) exist, but they're empty").length).toBe(2),
|
||||
);
|
||||
await waitFor(() => expect(getAllByText('Execute previous nodes').length).toBe(2));
|
||||
|
||||
// Collapse second node
|
||||
await userEvent.click(getAllByTestId('run-data-schema-header')[1]);
|
||||
expect(getAllByText("No fields - item(s) exist, but they're empty").length).toBe(1);
|
||||
expect(getAllByText('Execute previous nodes').length).toBe(1);
|
||||
});
|
||||
|
||||
it('renders schema for empty data with binary', async () => {
|
||||
@@ -295,7 +293,7 @@ describe('VirtualSchema.vue', () => {
|
||||
|
||||
await waitFor(() => {
|
||||
const items = getAllByTestId('run-data-schema-item');
|
||||
expect(items).toHaveLength(6);
|
||||
expect(items).toHaveLength(5);
|
||||
});
|
||||
|
||||
expect(container).toMatchSnapshot();
|
||||
@@ -309,7 +307,7 @@ describe('VirtualSchema.vue', () => {
|
||||
|
||||
const { getAllByText } = renderComponent();
|
||||
await waitFor(() =>
|
||||
expect(getAllByText("No fields - item(s) exist, but they're empty").length).toBe(2),
|
||||
expect(getAllByText("No fields - item(s) exist, but they're empty").length).toBe(1),
|
||||
);
|
||||
});
|
||||
|
||||
@@ -482,7 +480,7 @@ describe('VirtualSchema.vue', () => {
|
||||
const { getAllByTestId } = renderComponent();
|
||||
|
||||
await waitFor(() => {
|
||||
expect(getAllByTestId('run-data-schema-item')).toHaveLength(6);
|
||||
expect(getAllByTestId('run-data-schema-item')).toHaveLength(5);
|
||||
});
|
||||
const items = getAllByTestId('run-data-schema-item');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user