blob: 9c59ea678cf14f2785a1f471c4a7ac00fe621797 [file] [log] [blame]
// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {assert} from 'chai';
import {MrConvertIssue} from './mr-convert-issue.js';
let element;
describe('mr-convert-issue', () => {
beforeEach(() => {
element = document.createElement('mr-convert-issue');
document.body.appendChild(element);
});
afterEach(() => {
document.body.removeChild(element);
});
it('initializes', () => {
assert.instanceOf(element, MrConvertIssue);
});
it('no template chosen', async () => {
await element.updateComplete;
const buttons = element.shadowRoot.querySelectorAll('chops-button');
assert.isTrue(buttons[buttons.length - 1].disabled);
});
});