chore: add data-testid to model selector button

Adds data-testid="model-selector-button" to the model selector
trigger for reliable DOM targeting by keyboard shortcuts and tests.
This commit is contained in:
Marco Beretta 2026-03-26 23:47:31 +01:00
parent 1d0827ff79
commit 72b073047c
No known key found for this signature in database
GPG key ID: D918033D8E74CC11

View file

@ -65,6 +65,7 @@ function ModelSelectorContent() {
description={localize('com_ui_select_model')}
render={
<button
data-testid="model-selector-button"
className="my-1 flex h-9 w-full max-w-[70vw] items-center justify-center gap-2 rounded-xl border border-border-light bg-presentation px-3 py-2 text-sm text-text-primary hover:bg-surface-active-alt"
aria-label={localize('com_ui_select_model')}
>