blob: 4c0691123e1c6a7c14a58ee564df815ae22c5886 [file] [log] [blame]
/**
* @license
* Copyright 2022 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
import '../../../test/common-test-setup-karma';
import {fixture, html} from '@open-wc/testing-helpers';
import './gr-create-destination-dialog';
import {GrCreateDestinationDialog} from './gr-create-destination-dialog';
suite('gr-create-destination-dialog tests', () => {
let element: GrCreateDestinationDialog;
setup(async () => {
element = await fixture(
html`<gr-create-destination-dialog></gr-create-destination-dialog>`
);
});
test('render', () => {
expect(element).shadowDom.to.equal(/* HTML */ `
<gr-overlay
aria-hidden="true"
id="createOverlay"
style="outline: none; display: none;"
tabindex="-1"
with-backdrop=""
>
<gr-dialog confirm-label="View commands" disabled="" role="dialog">
<div class="header" slot="header">Create change</div>
<div class="main" slot="main">
<gr-repo-branch-picker> </gr-repo-branch-picker>
<p>
If you haven't done so, you will need to clone the repository.
</p>
</div>
</gr-dialog>
</gr-overlay>
`);
});
});