Currently in the process of transitioning from protractor to cypress for my page object model. The function provided below is how it looks in protractor, and I'm seeking assistance on how to write it in cypress.
*Protractor version*
this.getConfigButtons = function(module) {
return element(by.id("test-sidebar-buttons-" + module));
}
**Cypress version**
public getConfigButtons(module:any){
return cy.get('.test-sidebar-buttons-').find(module)
}
Unfortunately, the cypress version above is not functioning as expected.