mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-26 13:14:07 -08:00
33 lines
686 B
TypeScript
33 lines
686 B
TypeScript
/**
|
|
* Getters
|
|
*/
|
|
|
|
export function getVersionUpdatesPanelOpenButton() {
|
|
return cy.getByTestId('version-updates-panel-button');
|
|
}
|
|
|
|
export function getVersionUpdatesPanel() {
|
|
return cy.getByTestId('version-updates-panel');
|
|
}
|
|
|
|
export function getVersionUpdatesPanelCloseButton() {
|
|
return getVersionUpdatesPanel().get('.el-drawer__close-btn').first();
|
|
}
|
|
|
|
export function getVersionCard() {
|
|
return cy.getByTestId('version-card');
|
|
}
|
|
|
|
/**
|
|
* Actions
|
|
*/
|
|
|
|
export function openVersionUpdatesPanel() {
|
|
getVersionUpdatesPanelOpenButton().click();
|
|
getVersionUpdatesPanel().should('be.visible');
|
|
}
|
|
|
|
export function closeVersionUpdatesPanel() {
|
|
getVersionUpdatesPanelCloseButton().click();
|
|
}
|