-
Notifications
You must be signed in to change notification settings - Fork 7.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into ADO-1061-email-confirmation-banner
* master: feat(editor): Add Workflow history route and base page (no-changelog) (#7161) feat(Microsoft Outlook Node): Node overhaul (#4449) ci: Disable intermittently failing MFA e2e tests (no-changelog) (#7106) fix(editor): No need to add click emitting click events, VUE delegates the handler to the root element of the component (#7182)
- Loading branch information
Showing
107 changed files
with
11,331 additions
and
1,211 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
packages/editor-ui/src/components/CredentialEdit/OauthButton.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
packages/editor-ui/src/components/CredentialEdit/__tests__/OauthButton.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import userEvent from '@testing-library/user-event'; | ||
import { createTestingPinia } from '@pinia/testing'; | ||
import { createComponentRenderer } from '@/__tests__/render'; | ||
import OauthButton from '@/components/CredentialEdit/OauthButton.vue'; | ||
|
||
const renderComponent = createComponentRenderer(OauthButton, { | ||
pinia: createTestingPinia(), | ||
}); | ||
|
||
describe('OauthButton', () => { | ||
test.each([ | ||
['GoogleAuthButton', true], | ||
['n8n-button', false], | ||
])('should emit click event only once when %s is clicked', async (name, isGoogleOAuthType) => { | ||
const { emitted, getByRole } = renderComponent({ | ||
props: { isGoogleOAuthType }, | ||
}); | ||
|
||
const button = getByRole('button'); | ||
await userEvent.click(button); | ||
|
||
expect(emitted().click).toHaveLength(1); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
<script setup lang="ts"> | ||
import { useI18n } from '@/composables'; | ||
const i18n = useI18n(); | ||
</script> | ||
<template> | ||
<div :class="$style.view"> | ||
<n8n-heading :class="$style.header" tag="h2" size="medium" bold>Workflow name</n8n-heading> | ||
<div :class="$style.corner"> | ||
<n8n-heading tag="h2" size="medium" bold>{{ | ||
i18n.baseText('workflowHistory.title') | ||
}}</n8n-heading> | ||
<n8n-button type="tertiary" icon="times" size="small" text square /> | ||
</div> | ||
<div :class="$style.content"></div> | ||
<div :class="$style.list"></div> | ||
</div> | ||
</template> | ||
<style module lang="scss"> | ||
.view { | ||
display: grid; | ||
width: 100%; | ||
grid-template-areas: 'header corner' 'content list'; | ||
grid-template-columns: auto 330px; | ||
grid-template-rows: 65px auto; | ||
background-color: var(--color-background-xlight); | ||
} | ||
.header { | ||
grid-area: header; | ||
display: flex; | ||
align-items: center; | ||
padding: 0 var(--spacing-l); | ||
border-bottom: var(--border-width-base) var(--border-style-base) var(--color-foreground-base); | ||
} | ||
.corner { | ||
grid-area: corner; | ||
display: flex; | ||
align-items: center; | ||
justify-content: space-between; | ||
padding: 0 var(--spacing-3xs) 0 var(--spacing-s); | ||
background-color: var(--color-background-lighter); | ||
border-bottom: var(--border-width-base) var(--border-style-base) var(--color-foreground-base); | ||
border-left: var(--border-width-base) var(--border-style-base) var(--color-foreground-base); | ||
} | ||
.content { | ||
grid-area: content; | ||
} | ||
.list { | ||
grid-area: list; | ||
border-left: var(--border-width-base) var(--border-style-base) var(--color-foreground-base); | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.