mirror of https://github.com/rancher/dashboard.git
24 lines
505 B
TypeScript
24 lines
505 B
TypeScript
import ComponentPo from '@/cypress/e2e/po/components/component.po';
|
|
|
|
export default class PasswordPo extends ComponentPo {
|
|
/**
|
|
* Type value in the input
|
|
* @param value Value to be typed
|
|
* @returns
|
|
*/
|
|
set(value: string): Cypress.Chainable {
|
|
return this.input()
|
|
.focus()
|
|
.type(value);
|
|
}
|
|
|
|
/**
|
|
* Return the input HTML element from given container
|
|
* @returns HTML Element
|
|
*/
|
|
private input(): Cypress.Chainable {
|
|
return this.self()
|
|
.find('input');
|
|
}
|
|
}
|