blob: 44b3183c0ce53dc34b85a205c16432cc2ab77215 [file] [log] [blame]
/**
* @license
* Copyright 2022 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
import '../../../test/common-test-setup';
import {fixture, html, assert} from '@open-wc/testing';
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', () => {
assert.shadowDom.equal(
element,
/* 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>
`
);
});
});