ci: Fix E2E tests on master (no-changelog) (#5960)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™ 2023-04-12 13:37:25 +02:00 committed by GitHub
parent 10f8c35dbb
commit bdb5c81a15
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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');