mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-12 05:17:28 -08:00
fix: Small changes to user activation modal (no-changelog) (#5962)
This commit is contained in:
parent
c171365d2a
commit
0c10fbc83f
|
@ -45,13 +45,20 @@ describe('User activation survey', () => {
|
|||
|
||||
workflowPage.actions.activateWorkflow();
|
||||
|
||||
cy.intercept('GET', '/rest/workflows').as('getWorkflows');
|
||||
cy.intercept('GET', '/rest/credentials').as('getCredentials');
|
||||
cy.intercept('GET', '/rest/active').as('getActive');
|
||||
|
||||
cy.request(method, `${BASE_WEBHOOK_URL}/${path}`).then((response) => {
|
||||
expect(response.status).to.eq(200);
|
||||
cy.visit('/');
|
||||
cy.reload();
|
||||
|
||||
cy.wait(['@getWorkflows', '@getCredentials', '@getActive']);
|
||||
userActivationSurveyModal.getters.modalContainer().should('be.visible');
|
||||
userActivationSurveyModal.getters.feedbackInput().should('be.visible');
|
||||
userActivationSurveyModal.getters.feedbackInput().type('testing');
|
||||
userActivationSurveyModal.getters.feedbackInput().should('have.value', 'testing');
|
||||
userActivationSurveyModal.getters.sendFeedbackButton().click();
|
||||
});
|
||||
});
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
<n8n-text :bold="true"> {{ workflowName }} </n8n-text>
|
||||
</template>
|
||||
<template #ranSuccessfully>
|
||||
<n8n-text :bold="true" :class="$style.link">
|
||||
<n8n-text>
|
||||
{{
|
||||
locale.baseText('userActivationSurveyModal.description.workflowRanSuccessfully')
|
||||
}}
|
||||
|
@ -90,7 +90,7 @@ onMounted(async () => {
|
|||
currentSettings?.firstSuccessfulWorkflowId ?? '',
|
||||
);
|
||||
workflowName.value = name;
|
||||
showConfetti();
|
||||
setTimeout(showConfetti, 500);
|
||||
} catch (e) {}
|
||||
});
|
||||
|
||||
|
@ -157,10 +157,6 @@ const showConfetti = () => {
|
|||
margin-top: var(--spacing-l);
|
||||
}
|
||||
|
||||
.link {
|
||||
color: var(--color-primary);
|
||||
}
|
||||
|
||||
.description > * {
|
||||
font-size: var(--font-size-s);
|
||||
}
|
||||
|
|
|
@ -49,9 +49,7 @@ router.afterEach((to, from) => {
|
|||
runExternalHook('main.routeChange', useWebhooksStore(), { from, to });
|
||||
const userStore = useUsersStore();
|
||||
if (userStore.currentUser && to.name && to.name !== VIEWS.SIGNOUT && !to.name.includes('Modal')) {
|
||||
setTimeout(() => {
|
||||
userStore.showUserActivationSurveyModal();
|
||||
}, 500);
|
||||
userStore.showUserActivationSurveyModal();
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue