mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-26 21:19:43 -08:00
32 lines
822 B
TypeScript
32 lines
822 B
TypeScript
import {
|
|
closeVersionUpdatesPanel,
|
|
getVersionCard,
|
|
getVersionUpdatesPanelOpenButton,
|
|
openVersionUpdatesPanel,
|
|
} from '../composables/versions';
|
|
import { WorkflowsPage } from '../pages/workflows';
|
|
|
|
const workflowsPage = new WorkflowsPage();
|
|
|
|
describe('Versions', () => {
|
|
it('should open updates panel', () => {
|
|
cy.overrideSettings({
|
|
releaseChannel: 'stable',
|
|
versionCli: '1.0.0',
|
|
versionNotifications: {
|
|
enabled: true,
|
|
endpoint: 'https://api.n8n.io/api/versions/',
|
|
infoUrl: 'https://docs.n8n.io/getting-started/installation/updating.html',
|
|
},
|
|
});
|
|
|
|
cy.visit(workflowsPage.url);
|
|
cy.wait('@loadSettings');
|
|
|
|
getVersionUpdatesPanelOpenButton().should('contain', '2 updates');
|
|
openVersionUpdatesPanel();
|
|
getVersionCard().should('have.length', 2);
|
|
closeVersionUpdatesPanel();
|
|
});
|
|
});
|