Backport of Fixes issue - 20109 into release/1.17.x (#20125)

* no-op commit due to failed cherry-picking

* Fixes issue - 20109 (#20111)

* Fixes #20109

* add @hasA11yRefocus false

* add changelog

* Update ui/packages/consul-ui/app/components/hashicorp-consul/index.hbs

Co-authored-by: Tauhid Anjum <tauhidanjum@gmail.com>

---------

Co-authored-by: Tauhid Anjum <tauhidanjum@gmail.com>

* fix: stop re-clicking dc dropdown in dc-switch test

* fix: keep nspaces dropdown open in manage nspaces test

---------

Co-authored-by: temp <temp@hashicorp.com>
Co-authored-by: Ashesh Vidyut <134911583+absolutelightning@users.noreply.github.com>
Co-authored-by: Tauhid Anjum <tauhidanjum@gmail.com>
Co-authored-by: wenincode <tyler.wendlandt@hashicorp.com>
pull/20129/head
hc-github-team-consul-core 2024-01-09 13:01:36 -06:00 committed by GitHub
parent 7dec32ee1f
commit 9f88a1b036
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 5 additions and 5 deletions

3
.changelog/20111.txt Normal file
View File

@ -0,0 +1,3 @@
```release-note:bug
UI: fix autofocus on search box when page refreshes on typing in it due to url change.
```

View File

@ -73,7 +73,7 @@
</:notifications> </:notifications>
<:side-nav> <:side-nav>
<Hds::SideNav @isResponsive={{false}} class='consul-side-nav' data-test-navigation> <Hds::SideNav @hasA11yRefocus={{false}} @isResponsive={{false}} class='consul-side-nav' data-test-navigation>
<:header> <:header>
<Hds::SideNav::Header> <Hds::SideNav::Header>
<:logo> <:logo>

View File

@ -32,7 +32,7 @@
</:notifications> </:notifications>
<:side-nav> <:side-nav>
<Hds::SideNav @isResponsive={{true}} class='consul-side-nav'> <Hds::SideNav @hasA11yRefocus={{false}} @isResponsive={{true}} class='consul-side-nav'>
<:header> <:header>
<Hds::SideNav::Header> <Hds::SideNav::Header>
<:logo> <:logo>

View File

@ -43,7 +43,6 @@ Feature: dc / nspaces / manage : Managing Namespaces
And I don't see manageNspacesIsVisible on the navigation And I don't see manageNspacesIsVisible on the navigation
When I click services on the navigation When I click services on the navigation
Then the url should be /dc-1/services Then the url should be /dc-1/services
When I click nspace on the navigation
And I click manageNspaces on the navigation And I click manageNspaces on the navigation
Then the url should be /dc-1/namespaces Then the url should be /dc-1/namespaces
And I don't see manageNspacesIsVisible on the navigation And I don't see manageNspacesIsVisible on the navigation

View File

@ -32,11 +32,9 @@ Feature: dc / services / dc-switch : Switching Datacenters
And I click dcs.1.name on the navigation And I click dcs.1.name on the navigation
Then the url should be /dc-2/services Then the url should be /dc-2/services
Then I see 6 service models Then I see 6 service models
When I click dc on the navigation
And I click dcs.0.name on the navigation And I click dcs.0.name on the navigation
Then the url should be /dc-1/services Then the url should be /dc-1/services
Then I see 6 service models Then I see 6 service models
When I click dc on the navigation
And I click dcs.1.name on the navigation And I click dcs.1.name on the navigation
Then the url should be /dc-2/services Then the url should be /dc-2/services
Then I see 6 service models Then I see 6 service models