Project import generated by Copybara.
GitOrigin-RevId: d9e9e3fb4e31372ec1fb43b178994ca78fa8fe70
diff --git a/static_src/react/issue-wizard/SelectMenu.test.tsx b/static_src/react/issue-wizard/SelectMenu.test.tsx
new file mode 100644
index 0000000..13efef6
--- /dev/null
+++ b/static_src/react/issue-wizard/SelectMenu.test.tsx
@@ -0,0 +1,38 @@
+// Copyright 2021 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+import React from 'react';
+import {render} from '@testing-library/react';
+import userEvent from '@testing-library/user-event';
+import {screen} from '@testing-library/dom';
+import {assert} from 'chai';
+
+import SelectMenu from './SelectMenu.tsx';
+
+describe('SelectMenu', () => {
+ let container: React.RenderResult;
+
+ beforeEach(() => {
+ container = render(<SelectMenu />).container;
+ });
+
+ it('renders', () => {
+ const form = container.querySelector('form');
+ assert.isNotNull(form)
+ });
+
+ it('renders options on click', () => {
+ const input = document.getElementById('outlined-select-category');
+ if (!input) {
+ throw new Error('Input is undefined');
+ }
+
+ userEvent.click(input)
+
+ // 14 is the current number of options in the select menu
+ const count = screen.getAllByTestId('select-menu-item').length;
+
+ assert.equal(count, 14);
+ });
+});
\ No newline at end of file