blob: 94856d4ba1d1cde99f218725a56bb7dcdd0ae5c2 [file] [log] [blame]
Adrià Vilanova Martínezac4a6442022-05-15 19:05:13 +02001// Copyright 2022 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5import React from 'react';
6import {assert} from 'chai';
7import {cleanup, render} from '@testing-library/react';
8import {ConfirmBackModal} from 'react/issue-wizard/ConfirmBackModal.tsx';
9
10describe('IssueWizard confirm back modal', () => {
11
12 afterEach(cleanup);
13
14 it('render', () => {
15 render(<ConfirmBackModal enable={true} setEnable={()=>{}} confirmBack={()=>{}}/>);
16 const buttons = document.querySelectorAll('Button');
17 assert.equal(2, buttons.length);
18 });
19});