|
18 | 18 | </label>
|
19 | 19 | </div>
|
20 | 20 |
|
21 |
| - <div class="header__product-selector"> |
| 21 | + <div class="header__product-selector" data-testid="header__product-selector"> |
22 | 22 | {{ $nginxProducts := slice
|
23 | 23 | (dict "title" "NGINX One Console" "url" "/nginx-one" "type" "nginx-one")
|
24 | 24 | (dict "title" "NGINX Plus" "url" "/nginx" "type" "nginx-one")
|
|
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" }}
|
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")
|
91 | 91 | (dict "title" "NGINX" "url" "https://nginx.org/" "description" "Learn more about NGINX Open Source and read the community blog")
|
92 | 92 | }}
|
93 | 93 |
|
94 |
| - <button id="navbar-sites-button" class="header__f5sites__button"> |
| 94 | + <button id="navbar-sites-button" class="header__f5sites__button" data-testid="header__f5sites__button"> |
95 | 95 | <div class="header__f5sites__logo">
|
96 | 96 | <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000">
|
97 | 97 | <title>f5-logo-black</title>
|
|
115 | 115 | </svg>
|
116 | 116 | </div>
|
117 | 117 | </button>
|
118 |
| - <div class="dropdown-content" id="dropdown-content"> |
| 118 | + <div class="dropdown-content" id="dropdown-content" data-testid="header__f5sites-content"> |
119 | 119 | <ul>
|
120 | 120 | {{ range $f5Sites }}
|
121 | 121 | <li>
|
|
0 commit comments