---
title: "Satyam Tyagi (@satyam305) | Hashnode"
description: "learner. Read the latest articles by Satyam Tyagi on Hashnode."
url: "https://hashnode.com/@satyam305"
---

@satyam305

# Satyam Tyagi

@satyam305 · Joined May 2022

learner

## Comments

[Getting error in -> ● should allow user to change country. FAIL src/components/App.test.js ● should allow user to change country expect(received).toBe(expected) // Object.is equality Expected: true Received: false 27 | screen.getByRole('option', {name: 'Ireland'}), 28 | ) > 29 | expect(screen.getByRole('option', {name: 'Ireland'}).selected).toBe(true) | ^ 30 | }) 31 |](https://hashnode.com/posts/how-to-test-a-select-element-with-react-testing-library/615deda08e8734462af5b4a6/comment/62926b7ed97f80b5091d9dec)

Comment · Article · May 28, 2022 · [How to test a select element with React Testing Library](https://hashnode.com/posts/how-to-test-a-select-element-with-react-testing-library/615deda08e8734462af5b4a6)
