at least your assert should be that the textContent is equal to the 'my-custom-type' string