Adrià Vilanova Martínez | f19ea43 | 2024-01-23 20:20:52 +0100 | [diff] [blame] | 1 | // Copyright 2022 The Chromium Authors |
Adrià Vilanova Martínez | ac4a644 | 2022-05-15 19:05:13 +0200 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | import React from 'react'; |
| 6 | import {assert} from 'chai'; |
| 7 | import {cleanup, render} from '@testing-library/react'; |
| 8 | import {ConfirmBackModal} from 'react/issue-wizard/ConfirmBackModal.tsx'; |
| 9 | |
| 10 | describe('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 | }); |