graphdb-workbench-tests
Version:
Cypress tests for GraphDB workbench
23 lines (19 loc) • 598 B
JavaScript
export class HeaderSteps {
static getHeader() {
return cy.get('onto-header');
}
static openHomePage() {
HeaderSteps.getHeader().find('.home-page').click();
}
static logout() {
this.getHeader().find('onto-user-menu').click();
cy.get('.onto-user-menu-dropdown')
.contains('Logout')
.first()
// Force the click because Cypress sometimes determines that the item has 0x0 dimensions
.click({force: true});
}
static login() {
this.getHeader().find('.onto-user-login').click();
}
}