mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
fix: fix source control tets
This commit is contained in:
parent
876b492008
commit
48ecfd3d32
|
@ -69,7 +69,7 @@ describe('SettingsSourceControl', () => {
|
||||||
|
|
||||||
const updatePreferencesSpy = vi.spyOn(sourceControlStore, 'updatePreferences');
|
const updatePreferencesSpy = vi.spyOn(sourceControlStore, 'updatePreferences');
|
||||||
|
|
||||||
const { container, getByTestId, queryByTestId, getByRole } = renderComponent({
|
const { html, container, getByTestId, getByText, queryByTestId, getByRole } = renderComponent({
|
||||||
pinia,
|
pinia,
|
||||||
global: {
|
global: {
|
||||||
stubs: ['teleport'],
|
stubs: ['teleport'],
|
||||||
|
@ -120,10 +120,10 @@ describe('SettingsSourceControl', () => {
|
||||||
expect(saveSettingsButton).toBeDisabled();
|
expect(saveSettingsButton).toBeDisabled();
|
||||||
|
|
||||||
const branchSelect = getByTestId('source-control-branch-select');
|
const branchSelect = getByTestId('source-control-branch-select');
|
||||||
await userEvent.click(branchSelect);
|
await userEvent.click(within(branchSelect).getByRole('textbox'));
|
||||||
|
|
||||||
await waitFor(() => expect(within(branchSelect).getByText('main')).toBeVisible());
|
await waitFor(() => expect(getByText('main')).toBeVisible());
|
||||||
await userEvent.click(within(branchSelect).getByText('main'));
|
await userEvent.click(getByText('main'));
|
||||||
|
|
||||||
await waitFor(() => expect(saveSettingsButton).toBeEnabled());
|
await waitFor(() => expect(saveSettingsButton).toBeEnabled());
|
||||||
await userEvent.click(saveSettingsButton);
|
await userEvent.click(saveSettingsButton);
|
||||||
|
|
Loading…
Reference in a new issue