Skip to content
Snippets Groups Projects
Commit 265f1655 authored by Alexander Hammerman's avatar Alexander Hammerman
Browse files

set for workshop

parent ad3e6788
No related branches found
No related tags found
No related merge requests found
import { render, screen } from '@testing-library/react'; import { render, screen } from '@testing-library/react';
import AmountPicker from '../components/AmountPicker'; import AmountPicker from '../components/AmountPicker';
//These are the min and max values set in AmountPicker, so you can use them in your tests as well
const min = 1
const max = 20
test('Testing + button rendering', () => { test('Testing + button rendering', () => {
render(<AmountPicker />) render(<AmountPicker />)
const increaseButton = screen.getByRole('button',{name: '+'}) const increaseButton = screen.getByRole('button',{name: '+'})
...@@ -19,5 +23,4 @@ test('Testing count rendering', () => { ...@@ -19,5 +23,4 @@ test('Testing count rendering', () => {
expect(count).toBeInTheDocument() expect(count).toBeInTheDocument()
}) })
//Write your test cases below :)
//Write your test cases below :) \ No newline at end of file
...@@ -4,7 +4,7 @@ import { TextField } from "@mui/material" ...@@ -4,7 +4,7 @@ import { TextField } from "@mui/material"
import { Stack } from "@mui/system" import { Stack } from "@mui/system"
function AmountPicker() { function AmountPicker() {
//These are the min and max values that count should be able to obtain
const min = 1 const min = 1
const max = 20 const max = 20
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment