blob: 94856d4ba1d1cde99f218725a56bb7dcdd0ae5c2 [file] [log] [blame]
// Copyright 2022 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 {assert} from 'chai';
import {cleanup, render} from '@testing-library/react';
import {ConfirmBackModal} from 'react/issue-wizard/ConfirmBackModal.tsx';
describe('IssueWizard confirm back modal', () => {
afterEach(cleanup);
it('render', () => {
render(<ConfirmBackModal enable={true} setEnable={()=>{}} confirmBack={()=>{}}/>);
const buttons = document.querySelectorAll('Button');
assert.equal(2, buttons.length);
});
});