Elf M. Sternberg

Full Stack Web Developer

Where one teaches, two learn.

Tag: #testing

To all tags

Tip: Delete Lit's hidden cache when using WebdriverIO to test Lit-Element components.

I recently had a horrible experience where I could not get Lit to run the same test twice using the WebdriverIO Component Testing Guidelines for Lit.

The test is simple: Before each test, render the component, click on it, see if its internal state is what I expect, and then remove the component at the end of the test. I expected that if I ran the exact same test twice, it would work (or fail) twice.

It turns out Lit is being passive-aggressive about caching what you've done, won't re-render cached content preferring to re-connect it instead, and won't help you figure out that it doesn't exist anymore and can't be re-connected.

Continual Integration Testing for Web Applications: Remote testing with Celerity, Watir, and Cucumber

Continual Integration Testing for Web Applications: Hooking up our application to Hudson

Continual Integration Testing for Web Applications: A Sample Application in Django

Continual Integration Testing for Web Applications: Setting up Hudson behind Nginx

Automatic Testing of Facebook Applications

Are Test-Driven Development and Literate Programming the Same Discipline?

Doing basic tests with FireWatir and TDD