Skip to content

Commit f312624

Browse files
committed
Test fixes
1 parent a3749a7 commit f312624

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/v2/import_export_args.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ test('Import/export arguments [v2]', async ({ page, workflow }) => {
243243
*/
244244
async function exportArgs(page, taskName) {
245245
const downloadPromise = page.waitForEvent('download');
246-
await page.getByRole('button', { name: 'Export' }).click();
246+
await page.getByRole('button', { name: /.*Export$/ }).click();
247247
const download = await downloadPromise;
248248
const file = path.join(os.tmpdir(), `${taskName}-args-${download.suggestedFilename()}`);
249249
await download.saveAs(file);

tests/v2/jschema.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ test('JSON Schema validation', async ({ page, workflow }) => {
4747
await input.fill('bar');
4848
expect(form.getByText('Field is required')).toHaveCount(0);
4949
// Check that export button is disabled when there are some pending changes
50-
expect(await page.getByRole('button', { name: 'Export' }).isDisabled()).toEqual(true);
50+
expect(await page.getByRole('button', { name: /.*Export$/ }).isDisabled()).toEqual(true);
5151
});
5252

5353
await test.step('Fill optional string', async () => {

0 commit comments

Comments
 (0)