2023-12-20 02:49:40 -08:00
|
|
|
import {
|
|
|
|
closeVersionUpdatesPanel,
|
|
|
|
getVersionCard,
|
|
|
|
getVersionUpdatesPanelOpenButton,
|
|
|
|
openVersionUpdatesPanel,
|
|
|
|
} from '../composables/versions';
|
2024-09-18 00:19:33 -07:00
|
|
|
import { WorkflowsPage } from '../pages/workflows';
|
2023-12-20 02:49:40 -08:00
|
|
|
|
|
|
|
const workflowsPage = new WorkflowsPage();
|
|
|
|
|
|
|
|
describe('Versions', () => {
|
|
|
|
it('should open updates panel', () => {
|
2024-06-11 05:45:15 -07:00
|
|
|
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',
|
2023-12-20 02:49:40 -08:00
|
|
|
},
|
2024-06-11 05:45:15 -07:00
|
|
|
});
|
2023-12-20 02:49:40 -08:00
|
|
|
|
|
|
|
cy.visit(workflowsPage.url);
|
2024-06-11 05:45:15 -07:00
|
|
|
cy.wait('@loadSettings');
|
2023-12-20 02:49:40 -08:00
|
|
|
|
|
|
|
getVersionUpdatesPanelOpenButton().should('contain', '2 updates');
|
|
|
|
openVersionUpdatesPanel();
|
|
|
|
getVersionCard().should('have.length', 2);
|
|
|
|
closeVersionUpdatesPanel();
|
|
|
|
});
|
|
|
|
});
|