mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-13 16:14:07 -08:00
af3ac2db28
Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <aditya@netroy.in>
20 lines
567 B
TypeScript
20 lines
567 B
TypeScript
import { BasePage } from '../base';
|
|
|
|
export class SettingsSidebar extends BasePage {
|
|
getters = {
|
|
menuItem: (id: string) => cy.getByTestId('menu-item').get('#' + id),
|
|
users: () => this.getters.menuItem('settings-users'),
|
|
back: () => cy.getByTestId('settings-back'),
|
|
};
|
|
|
|
actions = {
|
|
goToUsers: () => {
|
|
this.getters.users().should('be.visible');
|
|
// We must wait before ElementUI menu is done with its animations
|
|
cy.get('[data-old-overflow]').should('not.exist');
|
|
this.getters.users().click();
|
|
},
|
|
back: () => this.getters.back().click(),
|
|
};
|
|
}
|