mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
ci: Fix E2E tests on master (no-changelog) (#5960)
This commit is contained in:
parent
10f8c35dbb
commit
bdb5c81a15
|
@ -1,22 +1,20 @@
|
||||||
import { WorkflowPage, NDV, MainSidebar, UserActivationSurveyModal } from '../pages';
|
import { WorkflowPage, NDV, UserActivationSurveyModal } from '../pages';
|
||||||
import SettingsWithActivationModalEnabled from '../fixtures/Settings_user_activation_modal_enabled.json';
|
import SettingsWithActivationModalEnabled from '../fixtures/Settings_user_activation_modal_enabled.json';
|
||||||
import { v4 as uuid } from 'uuid';
|
import { v4 as uuid } from 'uuid';
|
||||||
|
|
||||||
const workflowPage = new WorkflowPage();
|
const workflowPage = new WorkflowPage();
|
||||||
const ndv = new NDV();
|
const ndv = new NDV();
|
||||||
const mainSidebar = new MainSidebar();
|
|
||||||
const userActivationSurveyModal = new UserActivationSurveyModal();
|
const userActivationSurveyModal = new UserActivationSurveyModal();
|
||||||
|
|
||||||
const BASE_WEBHOOK_URL = 'http://localhost:5678/webhook';
|
const BASE_WEBHOOK_URL = 'http://localhost:5678/webhook';
|
||||||
|
|
||||||
describe('User activation survey', () => {
|
describe('User activation survey', () => {
|
||||||
it('Should show activation survey', () => {
|
it('Should show activation survey', () => {
|
||||||
|
|
||||||
cy.resetAll();
|
cy.resetAll();
|
||||||
|
|
||||||
cy.skipSetup();
|
cy.skipSetup();
|
||||||
|
|
||||||
cy.intercept('GET', '/rest/settings',(req) => {
|
cy.intercept('GET', '/rest/settings', (req) => {
|
||||||
req.reply(SettingsWithActivationModalEnabled);
|
req.reply(SettingsWithActivationModalEnabled);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -51,7 +49,6 @@ describe('User activation survey', () => {
|
||||||
expect(response.status).to.eq(200);
|
expect(response.status).to.eq(200);
|
||||||
cy.visit('/');
|
cy.visit('/');
|
||||||
cy.reload();
|
cy.reload();
|
||||||
mainSidebar.actions.goToCredentials();
|
|
||||||
|
|
||||||
userActivationSurveyModal.getters.modalContainer().should('be.visible');
|
userActivationSurveyModal.getters.modalContainer().should('be.visible');
|
||||||
userActivationSurveyModal.getters.feedbackInput().type('testing');
|
userActivationSurveyModal.getters.feedbackInput().type('testing');
|
||||||
|
|
Loading…
Reference in a new issue