-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UI: dashboard acceptance tests for quick actions, client count, replication #22475
Changes from all commits
cb1506c
8d67aa8
40105ea
47f3c4c
c6c4cdd
f9e9dfe
b4c4ebe
e4c244e
1156b4e
9e4e506
0776fbc
96ae11e
1cf435f
f38f863
c3f8529
f6159d9
610a87d
1684eff
ba3c97a
d01be32
e1f2ce3
56423e3
623e77d
e051a56
4224d43
e3996ba
9ede4d4
b32a297
97c8233
c70a823
31f9909
a6e098f
bd1976d
73f0e49
e14b01e
a94b65a
f312018
cb495c0
2f13d7f
2cc3185
b90837f
7433036
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ | |
@displayInherit={{true}} | ||
@shouldRenderName={{true}} | ||
@passObject={{true}} | ||
@objectKeys={{array "type"}} | ||
@objectKeys={{array "type" "version"}} | ||
class="is-marginless" | ||
data-test-secrets-engines-select | ||
/> | ||
|
@@ -38,13 +38,14 @@ | |
class="is-flex-grow-1" | ||
@selectLimit="1" | ||
@models={{array this.searchSelectParams.model}} | ||
@backend={{this.mountPath}} | ||
@backend={{this.selectedEngine.id}} | ||
@placeholder={{this.searchSelectParams.placeholder}} | ||
@disallowNewItems={{true}} | ||
@onChange={{this.handleActionSelect}} | ||
@fallbackComponent="input-search" | ||
@nameKey={{this.searchSelectParams.nameKey}} | ||
@disabled={{not this.searchSelectParams.model}} | ||
data-test-param-select | ||
/> | ||
|
||
<div> | ||
|
@@ -60,6 +61,10 @@ | |
</div> | ||
{{/if}} | ||
{{else}} | ||
<EmptyState @title="No mount selected" @message="Select a mount above to get started." /> | ||
<EmptyState | ||
@title="No mount selected" | ||
@message="Select a mount above to get started." | ||
data-test-no-mount-selected-empty | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It seems like you could use the empty state component test selectors and just reuse those in your test file? |
||
/> | ||
{{/if}} | ||
</Hds::Card::Container> |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
Copyright (c) HashiCorp, Inc. | ||
SPDX-License-Identifier: BUSL-1.1 | ||
~}} | ||
<Hds::Card::Container @hasBorder={{true}} class="has-padding-l has-bottom-padding-m"> | ||
<Hds::Card::Container @hasBorder={{true}} class="has-padding-l has-bottom-padding-m" data-test-replication-card> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. if this selector is something like SELECTORS = {
...
card: (name) => `[data-test-card="${name}"]`
} There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks for pointing this out and great idea! I will make a follow up ticket! |
||
|
||
<div class="is-flex-between"> | ||
<h3 class="title is-4 has-bottom-margin-xxs" data-test-client-count-title> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do all of the getters and things update as expected? I know sometimes ember has trouble tracking nested values if tracked properties are objects. It looks like tests would account for that, but just wanted to check 😄
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hellobontempo I was concerned about that too! Do you think I should move it back to individual tracked properties? From my manual qa and my acceptance tests, everything works as intended, but I'm paranoid
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I remember correctly - all of your getters recompute because of the selected engine 🤔
I think as long as you're not expecting the view to change based just the key value of the object, then we should be good!