blob: c0bd79d4bf1568b6cf1ccda9cdaeca7b4fb92759 [file] [log] [blame]
Adrià Vilanova Martínezf19ea432024-01-23 20:20:52 +01001// Copyright 2022 The Chromium Authors
Adrià Vilanova Martínezac4a6442022-05-15 19:05:13 +02002// 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});