web: restore test anchor tag (#8298)

* web: restore testability to search-select

I don't know how this disappeared, but the 'data-managed-for' tag here helps the test harness
find the right button to click when running the application wizard tests, among others.  :wq.

* prettier has opinions
This commit is contained in:
Ken Sternberg
2024-01-25 04:03:09 -08:00
committed by GitHub
parent 035795d468
commit 96345b1626

View File

@ -175,6 +175,9 @@ export class SearchSelect<T> extends CustomEmitterElement(AKElement) {
super.connectedCallback();
this.dropdownContainer = document.createElement("div");
this.dropdownContainer.dataset["managedBy"] = "ak-search-select";
if (this.name) {
this.dropdownContainer.dataset["managedFor"] = this.name;
}
document.body.append(this.dropdownContainer);
this.updateData();
this.addEventListener(EVENT_REFRESH, this.updateData);