Skip to content

Commit d2eff6e

Browse files
committed
[O2B-1517] Fix order of actions in mcReproducibleAsNotBad test
Moved the call to pressElement after capturing the old table HTML to ensure the correct state is compared.
1 parent 439522b commit d2eff6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/public/runs/runsPerDataPass.overview.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,8 @@ module.exports = () => {
189189
});
190190

191191
it('should switch mcReproducibleAsNotBad', async () => {
192-
await pressElement(page, '#mcReproducibleAsNotBadToggle input', true);
193192
let oldTable = await page.waitForSelector('table').then((table) => table.evaluate((t) => t.innerHTML));
193+
await pressElement(page, '#mcReproducibleAsNotBadToggle input', true);
194194
await waitForTableLength(page, 3, 5000, oldTable);
195195
await expectInnerText(page, 'tr#row106 .column-CPV a', '89');
196196
await expectLink(page, 'tr#row106 .column-CPV a', {

0 commit comments

Comments
 (0)