Skip to content

Commit

Permalink
Use static tokens for test
Browse files Browse the repository at this point in the history
  • Loading branch information
mstrasinskis committed Sep 25, 2024
1 parent 2cfda2c commit 240abb6
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions frontend/src/tests/routes/app/tokens/page.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -793,16 +793,19 @@ describe("Tokens route", () => {
it("should not display goto dashboard for not failed tokens", async () => {
const po = await renderPage();
const tokensPagePo = po.getTokensPagePo();
const rowsPos = await tokensPagePo.getTokensTable().getRows();
const ckBTCTokenRow = await tokensPagePo
.getTokensTable()
.getRowByName("ckBTC");
const notFailedTokenRow = await tokensPagePo
.getTokensTable()
.getRowByName("ZTOKEN1");

expect(rowsPos.length).toBeGreaterThan(0);
for (const rowPo of rowsPos) {
if ((await rowPo.getProjectName()) !== failedImportedTokenIdText) {
expect(await rowPo.getGoToDashboardButton().isPresent()).toEqual(
false
);
}
}
expect(
await ckBTCTokenRow.getGoToDashboardButton().isPresent()
).toEqual(false);
expect(
await notFailedTokenRow.getGoToDashboardButton().isPresent()
).toEqual(false);
});

it("should have view on dashboard action button", async () => {
Expand Down

0 comments on commit 240abb6

Please sign in to comment.