skip to content
Alvin Lucillo

Debugging Cypress test and a thing about Helm

/ 1 min read

💻 Tech

Getting stuck in a problem sometimes is a good thing. It forces us to think. Like today, I was puzzled why the Cypress test failed even though I only changed the way the variables were initialized — I placed them after the data was loaded. Then I realized the component’s visibility test depends on the arbitrary size of the component. I fixed it by using cy.wait() for each API call before checking the component’s visibility.

While learning about Helm, I discovered that you can set the replica count in the command. For example, helm upgrade release-name chart-name --set replicaCount=3. This is useful when you want to scale up or down your application.