Skip to content

Commit c7649e1

Browse files
committed
fixes
1 parent 7b549fc commit c7649e1

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

test/lib/usecases/run/GetAllRunsUseCase.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ module.exports = () => {
472472

473473
let { runs } = await new GetAllRunsUseCase().execute(getAllRunsDto);
474474
expect(runs).to.be.an('array');
475-
expect(runs).to.have.lengthOf(89);
475+
expect(runs).to.have.lengthOf(8);
476476

477477
getAllRunsDto.query.filter.detectors.values = 'ITS , FT0';
478478

test/public/defaults.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,8 @@ module.exports.waitForTableTotalRowsCountToEqual = async (page, amount) => {
177177
amount,
178178
);
179179
} catch {
180-
const actualSize = (await page.$$('tbody tr')).length;
181-
throw new Error(`Expected total rows count ${expectedSize}, but got ${actualSize}`);
180+
const actualCount = (await page.$$('#totalRowsCount')).innerText;
181+
throw new Error(`Expected total rows count ${amount}, but got ${actualCount}`);
182182
}
183183
};
184184

test/public/runs/overview.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ module.exports = () => {
472472
await waitForTableLength(page, 4);
473473

474474
await page.select(runDurationOperatorSelector, '=');
475-
await waitForTableLength(page, 3);
475+
await waitForTableLength(page, 4);
476476

477477
let runDurationList = await getColumnCellsInnerTexts(page, 'runDuration');
478478

0 commit comments

Comments
 (0)