e2e: show browser logs to debug CI issues

This commit is contained in:
Jens Langhammer
2020-06-26 15:06:46 +02:00
parent c07bd6e733
commit cc7e4ad0e2
2 changed files with 9 additions and 0 deletions

View File

@ -50,6 +50,9 @@ const convertToSlug = (text) => {
document.querySelectorAll("input[name=name]").forEach((input) => {
input.addEventListener("input", (e) => {
const form = e.target.closest("form");
if (form === null) {
return;
}
const slugField = form.querySelector("input[name=slug]");
slugField.value = convertToSlug(e.target.value);
});