Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
VREMSoftwareDevelopment committed Oct 22, 2023
1 parent 44ceb82 commit 97e5817
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions react/src/__test__/UsageByYear.e2e.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,20 +91,4 @@ describe('UsageByYear e2e', () => {
},
TIMEOUT
);

test(
'should sort by total ascending',
async () => {
const selector = '#year-total > span';
await page.waitForSelector(selector);
await page.click(selector);
await page.click(selector);
const tbodyElements = await page.evaluate(() =>
Array.from(document.querySelectorAll('tbody > tr'), (element) => element.innerText)
);
expect(tbodyElements[0]).toEqual('2011\t139.939\t10.745\t150.684\t0.413\t365');
expect(tbodyElements[2]).toEqual('2013\t603.928\t35.773\t639.701\t1.753\t365');
},
TIMEOUT
);
});

0 comments on commit 97e5817

Please sign in to comment.