blob: b68e27489ea7de11e417f10fb41376f299a998dc [file] [log] [blame]
Copybara854996b2021-09-07 19:36:02 +00001// Copyright 2019 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5import {assert} from 'chai';
6import {MrConvertIssue} from './mr-convert-issue.js';
7
8let element;
9
10describe('mr-convert-issue', () => {
11 beforeEach(() => {
12 element = document.createElement('mr-convert-issue');
13 document.body.appendChild(element);
14 });
15
16 afterEach(() => {
17 document.body.removeChild(element);
18 });
19
20 it('initializes', () => {
21 assert.instanceOf(element, MrConvertIssue);
22 });
23
24 it('no template chosen', async () => {
25 await element.updateComplete;
26
27 const buttons = element.shadowRoot.querySelectorAll('chops-button');
28 assert.isTrue(buttons[buttons.length - 1].disabled);
29 });
30});