The Dev Blog

A collection of thoughts on software architecture, backend systems, and engineering challenges.

Articles

Preamble

Second to last part of the playwright intro docs is about github actions integraiton.

Plan

I'll be using this page for testing: https://ocelotcodesystems.com/index.html

Parameterized URL

Before actually configuring github actions I wondered about how to parameterize the URL that the test would run against and decided to figure that out first.

...

View Post

Day 4 was supposed to be about grouping tests, but I got sidetracked debugging a resource issue. Still very valid experience, but now that it's done I can wrap up test grouping, then move on to CI integration and IDE integration.

Specifying Tests

Run everything:

...

View Post

Day 3 was about learning the different ways that tests can be grouped and selected for running.

Investigating test failures

At a glance everything was going great. I ran the tests in UI mode, immediately identified that I had missed a ".click()" on one of the tests, fixed it, ran it again.

Resource Investigation

I started suspecting resource constraints, so I limited the test to one simultaneous worker, like so:

...

View Post

Writing Tests

Turns out the "GetByRole" function I saw in the example test is part of a whole API of element-getters:

Generating Tests

CodeGen is a cool little tool that allows you to generate code by navigating around a website.

...

View Post

In a backend I built for a webapp, the database has model/service/repo layers. The repository layer was meant to have some built-in security.

The Plan

We still need that pattern of using a getter to check if the entity exists, and in fact I think we're going to have to use it both at the repo layer and at the service layer.

...

View Post