1 declare namespace Cypress {
3 drawingBoardPressAddButtonByElementName: typeof drawingBoardPressAddButtonByElementName,
4 drawingBoardNumberOfExistingElementsShouldContains: typeof drawingBoardNumberOfExistingElementsShouldContains
5 getDrawingBoardDeployBtn: typeof getDrawingBoardDeployBtn
9 function drawingBoardPressAddButtonByElementName(elementName : string) : Chainable<any> {
10 return cy.getElementByDataTestsId(elementName + '-add-btn');
13 function drawingBoardNumberOfExistingElementsShouldContains(expectedElements : number) : void {
14 cy.getElementByDataTestsId('numberButton').contains(expectedElements);
17 function getDrawingBoardDeployBtn() : Chainable<any> {
18 return cy.getElementByDataTestsId('deployBtn');
22 Cypress.Commands.add('drawingBoardPressAddButtonByElementName', drawingBoardPressAddButtonByElementName);
23 Cypress.Commands.add('drawingBoardNumberOfExistingElementsShouldContains', drawingBoardNumberOfExistingElementsShouldContains);
24 Cypress.Commands.add('getDrawingBoardDeployBtn', getDrawingBoardDeployBtn);