Skip to content

Commit dfe3e45

Browse files
Fix get by role
1 parent 968b13c commit dfe3e45

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/regressions/index.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,15 +196,14 @@ async function main() {
196196
});
197197

198198
it('should export a chart as PNG', async function test() {
199-
this.timeout(20000);
200199
const route = '/docs-charts-export/ExportChartAsImage';
201200
const screenshotPath = path.resolve(screenshotDir, `.${route}PNG.png`);
202201
await fse.ensureDir(path.dirname(screenshotPath));
203202

204203
await navigateToTest(route);
205204

206205
const downloadPromise = page.waitForEvent('download');
207-
await page.getByRole('button', { name: 'Print' }).click();
206+
await page.getByRole('button', { name: 'Export Image' }).click();
208207

209208
const download = await downloadPromise;
210209

0 commit comments

Comments
 (0)