From b0e3e533df1319117e78130230319f2f539e1cc9 Mon Sep 17 00:00:00 2001 From: Liliana Date: Sun, 28 Apr 2024 18:27:49 +0200 Subject: [PATCH 1/3] button test --- webapp/src/components/Button.test.js | 32 +++++++++++++++++++++ webapp/src/components/FirstGame.test.js | 33 ++++++++++++---------- webapp/src/components/QuestionExtractor.js | 0 webapp/src/components/Util.js | 3 -- 4 files changed, 50 insertions(+), 18 deletions(-) create mode 100644 webapp/src/components/Button.test.js delete mode 100644 webapp/src/components/QuestionExtractor.js diff --git a/webapp/src/components/Button.test.js b/webapp/src/components/Button.test.js new file mode 100644 index 00000000..b058edf6 --- /dev/null +++ b/webapp/src/components/Button.test.js @@ -0,0 +1,32 @@ +import React from 'react'; +import { render, fireEvent } from '@testing-library/react'; +import Button from './Button'; + + +describe('Button component', () => { + + test('renders button', () => { + const { getByText } = render(