Skip to content

Commit 250ef63

Browse files
committed
Minor fix on test
1 parent a5d8152 commit 250ef63

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/jschema.spec.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,8 @@ test('JSON Schema validation', async ({ page, browserName, workflow }) => {
292292
await fileChooser.setFiles(downloadedFile);
293293
await page.getByRole('button', { name: 'Confirm' }).click();
294294
await page.getByText('must be equal to one of the allowed values').waitFor();
295+
await page.getByRole('button', { name: 'Close' }).click();
296+
await waitModalClosed(page);
295297
});
296298

297299
await test.step('Import valid file', async () => {
@@ -307,6 +309,9 @@ test('JSON Schema validation', async ({ page, browserName, workflow }) => {
307309
}
308310
};
309311
fs.writeFileSync(downloadedFile, JSON.stringify(validData));
312+
await page.getByRole('button', { name: 'Import' }).click();
313+
const modalTitle = page.locator('.modal.show .modal-title');
314+
await modalTitle.waitFor();
310315
const fileChooserPromise = page.waitForEvent('filechooser');
311316
await page.getByText('Select arguments file').click();
312317
const fileChooser = await fileChooserPromise;

0 commit comments

Comments
 (0)