|
43 | 43 | {{ $productIdentifier := index ((split $relPermalink "/")) 1 }} |
44 | 44 | {{ $productName := index $productMap $productIdentifier | default "Product Documentation" }} |
45 | 45 |
|
46 | | - <button class="product-selector__button" id="product-selector-button"> |
| 46 | + <button class="product-selector__button" id="product-selector-button" data-testid="product-selector__button"> |
47 | 47 | {{/* product name and selector */}} |
48 | 48 | <span class="product-name">{{ $productName }}</span> |
49 | 49 | <span class="product-selector-button-icon"> |
|
52 | 52 | </svg> |
53 | 53 | </span> |
54 | 54 | </button> |
55 | | - <div class="product-selector" id="product-selector"> |
| 55 | + <div class="product-selector" id="product-selector" data-testid="product-selector"> |
56 | 56 | {{ $groupedProducts := dict |
57 | 57 | "nginx-one" (where $nginxProducts "type" "nginx-one") |
58 | 58 | "nginx-app-protect" (where $nginxProducts "type" "nginx-app-protect") |
|
63 | 63 | {{ range $orderedKeys }} |
64 | 64 | {{ $type := . }} |
65 | 65 | {{ $products := index $groupedProducts $type }} |
66 | | - <div class="product-selector-content" id="product-selector-content"> |
| 66 | + <div class="product-selector-content" id="product-selector-content" data-testid="product-selector-content"> |
67 | 67 | <p>{{ $type | humanize | title | upper }}</p> |
68 | 68 | <ul> |
69 | 69 | {{ range $products }} |
|
78 | 78 | </div> |
79 | 79 |
|
80 | 80 | {{ if ( not ( in .Site.Params.buildtype "package" ) ) }} |
81 | | - <div class="header__search"> |
| 81 | + <div class="header__search" data-testid="header__search"> |
82 | 82 | <!-- Standalone search box. --> |
83 | 83 | {{ partial "coveo-atomic-search.html" (dict "id" "search-standalone-header") }} |
84 | 84 | </div> |
85 | 85 | {{ end }} |
86 | 86 |
|
87 | | - <div class="header__f5sites"> |
| 87 | + <div class="header__f5sites" data-testid="header__f5sites"> |
88 | 88 | {{ $f5Sites := slice |
89 | 89 | (dict "title" "DevCentral" "url" "https://community.f5.com/" "description" "Connect & learn in our hosted community") |
90 | 90 | (dict "title" "MyF5" "url" "https://my.f5.com/" "description" "Your key to everything F5, including support, registration keys, and subscriptions") |
|
93 | 93 |
|
94 | 94 | <ul class="navbar navbar-nav"> |
95 | 95 | <li class="nav-item-explore active"> |
96 | | - <button id="navbar-sites-button" class="button navbar-button"> |
| 96 | + <button id="navbar-sites-button" class="button navbar-button" data-testid="header__f5sites__button"> |
97 | 97 | F5 Sites |
98 | 98 | <i id="navbar-sites-button-icon" class="link-chevron-icon fa-solid fa-chevron-down"></i> |
99 | 99 | </button> |
100 | | - <div class="dropdown-content" id="dropdown-content"> |
| 100 | + <div class="dropdown-content" id="dropdown-content" data-testid="header__f5sites-content"> |
101 | 101 | <ul> |
102 | 102 | {{ range $f5Sites }} |
103 | 103 | <li> |
|
0 commit comments