blob: c0bd79d4bf1568b6cf1ccda9cdaeca7b4fb92759 [file] [log] [blame]
// Copyright 2022 The Chromium Authors
// 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);
});
});