Mindblown: a blog about philosophy.

  • Page Objects with Cypress

    The Page Object Model is a popular design pattern that provides a structured approach to organizing and interacting with web pages in automated tests, promoting code reusability, maintainability, and readability. How this design pattern is implemented can very from org to org. Often I come across Cypress frameworks that use classes, modules, namespaces, or a…

  • Custom Cypress Workflows

    One way to have Cypress automation run is through a series of GitHub Actions workflows. The one I’m going to show you runs through a defined matrix and runs test in parallel. Take for example this Matrix. Think of this as an array of test you want running in your suite. Note that we can…

  • Axios Client

    There were times I needed a backend framework to support making api request. Axios offers a powerful and flexible HTTP client that simplifies the process of making HTTP requests and handling responses in JavaScript/TypeScript applications. Its ease of use, promise-based nature, and extensive features make it a great candidate. To do this I created a…

  • Cancun

    In 2019, I took a trip to Cancun, Mexico. I stayed at Sun Palace all-inclusive resort which turned out to be a great place to stay. When landing in Cancun, the first thing I noticed at the airport was a swarm of people offering you a taxi service to your hotel. Be very careful when…

  • Hawaii

    April 2018 I spent a few days on the Big Island of Hawaii at the Hilton, Waikoloa Village. This was an all inclusive five star resort that included canal boats, huge swimming pools with slides, bed and breakfast, swimming with dolphins, and absolutely amazing views. I loved staying here, the only critique I could give…

  • How I Built My Site

    GatsbyJS Is an open source framework for building static web sites while keeping React features. This makes it super fast, lightweight, SEO friendly and best development experience. Gatsby has a bunch of starters to select from that cover the majority of use cases. Also it’s plugin based, which means you no longer need to configure the…

  • Balboa Park

    If you’re ever in the San Diego area, I highly recommend you stop for a quick visit at Balboa Park. It’s really close to the San Diego Zoo. My particular favorite garden there was the Japanese Friendship Garden which offered a variety of unique settings, stone arrangements, koi ponds, water features, sukiya-style buildings and landscapes.…

  • Cypress Formdata

    Issue I came across a limitation with cypress while trying to upload an image using formData. Cypress cy.request() currently does not support formData submission. Solution First I load in my image from a fixture file and set that file into a FormData. I then call a custom command function called formRequest passing in the defined…

  • Github Actions Cypress Workflows

    Utilizing Github actions, to run multiple Cypress specs in parallel Starting at the route of your project create a .github/workflows/ directory. This is where you will be defining and creating your different workflows. Each workflow will be responsible for running their own set of jobs and steps. Workflow Name Workflow Schedule I like to set…

Got any book recommendations?