MCPcopy Create free account
hub / github.com/ShipSecAI/studio / openEditDialog

Function openEditDialog

frontend/src/pages/__tests__/SecretsManager.test.tsx:150–159  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

148};
149
150const 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
161describe('SecretsManager edit dialog', () => {
162 beforeEach(async () => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected