()
| 148 | }; |
| 149 | |
| 150 | const openEditDialog = async () => { |
| 151 | const rows = await screen.findAllByRole('row'); |
| 152 | const rowElement = rows.find((row) => within(row).queryByText(baseSecret.name)); |
| 153 | if (!rowElement) { |
| 154 | throw new Error('Unable to locate secret row for edit action'); |
| 155 | } |
| 156 | const editButton = within(rowElement).getByRole('button', { name: 'Edit' }); |
| 157 | fireEvent.click(editButton); |
| 158 | return await screen.findByRole('dialog'); |
| 159 | }; |
| 160 | |
| 161 | describe('SecretsManager edit dialog', () => { |
| 162 | beforeEach(async () => { |
no outgoing calls
no test coverage detected