mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-11 21:07:28 -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 { v4 as uuid } from 'uuid';
|
||||
|
||||
const workflowPage = new WorkflowPage();
|
||||
const ndv = new NDV();
|
||||
const mainSidebar = new MainSidebar();
|
||||
const userActivationSurveyModal = new UserActivationSurveyModal();
|
||||
|
||||
const BASE_WEBHOOK_URL = 'http://localhost:5678/webhook';
|
||||
|
||||
describe('User activation survey', () => {
|
||||
it('Should show activation survey', () => {
|
||||
|
||||
cy.resetAll();
|
||||
|
||||
cy.skipSetup();
|
||||
|
||||
cy.intercept('GET', '/rest/settings',(req) => {
|
||||
cy.intercept('GET', '/rest/settings', (req) => {
|
||||
req.reply(SettingsWithActivationModalEnabled);
|
||||
});
|
||||
|
||||
|
@ -51,7 +49,6 @@ describe('User activation survey', () => {
|
|||
expect(response.status).to.eq(200);
|
||||
cy.visit('/');
|
||||
cy.reload();
|
||||
mainSidebar.actions.goToCredentials();
|
||||
|
||||
userActivationSurveyModal.getters.modalContainer().should('be.visible');
|
||||
userActivationSurveyModal.getters.feedbackInput().type('testing');
|
||||
|
|
Loading…
Reference in a new issue