Poc share domain test selectors (#2278)

* Share domain (storage-buckets) selectors and refactor the previous test to rely only on standard selectors and data-test-* when need.
This commit is contained in:
Carlos Alcaide Corvo authored and GitHub committed 2024-05-31 11:02:55 -07:00
1 parent 966e16863a
commit 7e5db0bc3d
6 files changed
+193 -172

No files matched your search

@@ -3,7 +3,7 @@
SPDX-License-Identifier: MPL-2.0
}}
<div class='secret-input'>
<div class='secret-input' ...attributes>
{{#if (or this.isDisabled this.isActionable)}}
<span class='overlay'></span>
{{/if}}
@@ -15,7 +15,6 @@
name={{@name}}
disabled={{or @isDisabled (not this.isEditing)}}
@hasVisibilityToggle={{false}}
...attributes
as |F|
>
{{yield F}}
@@ -302,6 +302,7 @@
@isDisabled={{form.disabled}}
@showEditButton={{true}}
@cancel={{fn @rollbackSecretAttrs 'access_key_id'}}
data-test-access-key-id
{{on 'input' (set-from-event @model 'access_key_id')}}
as |F|
>
@@ -322,6 +323,7 @@
@isDisabled={{form.disabled}}
@showEditButton={{true}}
@cancel={{fn @rollbackSecretAttrs 'secret_access_key'}}
data-test-secret-access-key
{{on 'input' (set-from-event @model 'secret_access_key')}}
as |F|
>
@@ -276,6 +276,7 @@
@isDisabled={{form.disabled}}
@showEditButton={{true}}
@cancel={{fn @rollbackSecretAttrs 'access_key_id'}}
data-test-access-key-id
{{on 'input' (set-from-event @model 'access_key_id')}}
as |F|
>
@@ -296,6 +297,7 @@
@isDisabled={{form.disabled}}
@showEditButton={{true}}
@cancel={{fn @rollbackSecretAttrs 'secret_access_key'}}
data-test-secret-access-key
{{on 'input' (set-from-event @model 'secret_access_key')}}
as |F|
>