umbraco-cypress-testhelpers
Version:
Test helpers for making Cypress tests for Umbraco solutions
19 lines (14 loc) • 406 B
text/typescript
import CommandBase from './commandBase';
export default class UmbracoButtonByLabelKey extends CommandBase {
_commandName = 'umbracoButtonByLabelKey';
method(label) {
const cy = this.cy;
const cypress = this.cypress;
cypress.log({
displayName: 'Umbraco Button',
});
return cy.get('umb-button[label-key="' + label + '"] button:enabled', {
log: false,
});
}
}