mirror of https://github.com/Ombi-app/Ombi
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
947 B
37 lines
947 B
4 years ago
|
import { BasePage } from "../base.page";
|
||
|
|
||
|
class LoginPage extends BasePage {
|
||
|
|
||
4 years ago
|
|
||
4 years ago
|
get username(): Cypress.Chainable<any> {
|
||
|
return cy.get('#username-field');
|
||
|
}
|
||
|
|
||
|
get password(): Cypress.Chainable<any> {
|
||
|
return cy.get('#password-field');
|
||
|
}
|
||
|
|
||
|
get ombiSignInButton(): Cypress.Chainable<any> {
|
||
|
return cy.get('[data-cy=OmbiButton]');
|
||
|
}
|
||
|
|
||
|
get plexSignInButton(): Cypress.Chainable<any> {
|
||
|
return cy.get('[data-cy=oAuthPlexButton]');
|
||
|
}
|
||
|
|
||
|
constructor() {
|
||
|
super();
|
||
|
}
|
||
|
|
||
4 years ago
|
visit(options: Cypress.VisitOptions): Cypress.Chainable<Cypress.AUTWindow>;
|
||
|
visit(): Cypress.Chainable<Cypress.AUTWindow>;
|
||
|
visit(id: string): Cypress.Chainable<Cypress.AUTWindow>;
|
||
|
visit(id: string, options: Cypress.VisitOptions): Cypress.Chainable<Cypress.AUTWindow>;
|
||
|
visit(id?: any, options?: any) {
|
||
4 years ago
|
return cy.visit(`/login`, options);
|
||
|
}
|
||
4 years ago
|
|
||
4 years ago
|
}
|
||
|
|
||
|
export const loginPage = new LoginPage();
|