Skip to content

Commit

Permalink
Merge pull request #31 from ntraut/new-tests
Browse files Browse the repository at this point in the history
increase timeouts for test load control points
  • Loading branch information
katjaq authored Mar 19, 2024
2 parents 6e74c28 + d858db4 commit f88e4c8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ describe('Test Thresholdmann', () => {

describe('Loading', () => {
it('Load Control Points', async () => {
page.setDefaultTimeout(60000);
page.setDefaultTimeout(120000);
const fileChooserPromise = page.waitForEvent('filechooser');
await page.click('#loadControlPoints');
const fileChooser = await fileChooserPromise;
Expand All @@ -380,13 +380,13 @@ describe('Test Thresholdmann', () => {
buffer: Buffer.from(JSON.stringify({ points: [[50, 50, 50]], values: [100]}), 'utf-8')
});
// wait for the new points to be loaded
await expect(page.locator('#control-table tbody tr:first-child td.text-val input')).toHaveValue('100', { timeout: 10000 });
await expect(page.locator('#control-table tbody tr:first-child td.text-val input')).toHaveValue('100', { timeout: 15000 });
const points = await page.evaluate(() => window.globals.points);
const threshold = await page.evaluate(() => window.globals.values[0]);
assert.strictEqual(points.length, 1);
assert.deepStrictEqual(points, [[50, 50, 50]]);
assert.strictEqual(threshold, 100);
}).timeout(200000);
}).timeout(300000);
});
});
});
Expand Down

0 comments on commit f88e4c8

Please sign in to comment.