feat: Update e2e tests to run on new canvas (no-changelog) (#12784)

This commit is contained in:
Alex Grozav
2025-01-24 14:38:54 +02:00
committed by GitHub
parent 2c58d47f8e
commit afbbfa3a90
30 changed files with 240 additions and 1593 deletions

View File

@@ -1431,7 +1431,7 @@ defineExpose({ enterEditMode });
</template>
<N8nIconButton
:icon="linkedRuns ? 'unlink' : 'link'"
class="linkRun"
:class="['linkRun', linkedRuns ? 'linked' : '']"
text
type="tertiary"
size="small"

View File

@@ -102,8 +102,8 @@ export const useKeybindings = (
function toShortcutString(event: KeyboardEvent) {
const { shiftKey, altKey } = event;
const ctrlKey = isCtrlKeyPressed(event);
const keys = [event.key];
const codes = [keyboardEventCodeToKey(event.code)];
const keys = 'key' in event ? [event.key] : [];
const codes = 'code' in event ? [keyboardEventCodeToKey(event.code)] : [];
const modifiers: string[] = [];
if (shiftKey) {

View File

@@ -35,7 +35,7 @@ export const useUsageStore = defineStore('usage', () => {
const rootStore = useRootStore();
const settingsStore = useSettingsStore();
const state = reactive<UsageState>(DEFAULT_STATE);
const state = reactive<UsageState>({ ...DEFAULT_STATE });
const planName = computed(() => state.data.license.planName || DEFAULT_PLAN_NAME);
const planId = computed(() => state.data.license.planId);

View File

@@ -349,7 +349,9 @@ async function initializeRoute(force = false) {
if (!isAlreadyInitialized) {
historyStore.reset();
await loadCredentials();
if (!isDemoRoute.value) {
await loadCredentials();
}
// If there is no workflow id, treat it as a new workflow
if (isNewWorkflowRoute.value || !workflowId.value) {