-
-
Notifications
You must be signed in to change notification settings - Fork 69
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Bug Report 🐛
Hi there
I have a simple table structure where I wanted to select its first cell. While applying a better selector suggested by the application, it no longer selects the element.
To Reproduce ✔️
- Enter the following HTML
<table>
<thead>
<tr>
<th>Name</th>
<th>E-mail</th>
</tr>
</thead>
<tbody>
<tr>
<td>foo</td>
<td>foo@bar.foo</td>
</tr>
</tbody>
</table>
- Enter the following selector
screen.getByText('foo')
- The application then suggests
screen.getByRole('cell', { name: /foo/i })
- Apply the aforementioned suggestion
- No element is found
Expected behavior 🤔
The element <td>foo</td>
should be selected
Your Environment 💻
- browser: Firefox
- os: Windows
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working