-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feat/optional-index-canister
- Loading branch information
Showing
22 changed files
with
1,033 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,3 +51,5 @@ backend-v*.wasm.gz | |
pocket-ic | ||
|
||
e2e/*-snapshots/*-darwin.png | ||
|
||
coverage/ |
Binary file modified
BIN
+97 Bytes
(100%)
...spec.ts-snapshots/should-display-about-why-oisy-modal-1-Google-Chrome-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-321 Bytes
(100%)
...-snapshots/should-display-homepage-in-logged-in-state-1-Google-Chrome-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+223 Bytes
(100%)
...snapshots/should-display-homepage-in-logged-out-state-1-Google-Chrome-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-12.3 KB
(88%)
...spec.ts-snapshots/should-display-receive-tokens-modal-1-Google-Chrome-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import { testWithII } from '@dfinity/internet-identity-playwright'; | ||
import { expect } from '@playwright/test'; | ||
import { TransactionsPage } from './utils/pages/transactions.page'; | ||
|
||
testWithII('should display BTC transactions page', async ({ page, iiPage }) => { | ||
const transactionsPage = new TransactionsPage({ page, iiPage, tokenSymbol: 'BTC' }); | ||
|
||
await transactionsPage.waitForReady(); | ||
|
||
await expect(page).toHaveScreenshot({ fullPage: true }); | ||
}); | ||
|
||
testWithII('should display ETH transactions page', async ({ page, iiPage }) => { | ||
const transactionsPage = new TransactionsPage({ page, iiPage, tokenSymbol: 'ETH' }); | ||
|
||
await transactionsPage.waitForReady(); | ||
|
||
await expect(page).toHaveScreenshot({ fullPage: true }); | ||
}); | ||
|
||
testWithII('should display ICP transactions page', async ({ page, iiPage }) => { | ||
const transactionsPage = new TransactionsPage({ page, iiPage, tokenSymbol: 'ICP' }); | ||
|
||
await transactionsPage.waitForReady(); | ||
|
||
await expect(page).toHaveScreenshot({ fullPage: true }); | ||
}); |
Binary file added
BIN
+105 KB
...pec.ts-snapshots/should-display-BTC-transactions-page-1-Google-Chrome-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+125 KB
...pec.ts-snapshots/should-display-ETH-transactions-page-1-Google-Chrome-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+112 KB
...pec.ts-snapshots/should-display-ICP-transactions-page-1-Google-Chrome-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { TOKEN_CARD } from '../../../src/frontend/src/lib/constants/test-ids.constants'; | ||
import { HomepageLoggedIn, type HomepageLoggedInParams } from './homepage.page'; | ||
|
||
export type TransactionsPageParams = { | ||
tokenSymbol: string; | ||
} & HomepageLoggedInParams; | ||
|
||
export class TransactionsPage extends HomepageLoggedIn { | ||
readonly #tokenSymbol: string; | ||
|
||
constructor({ page, iiPage, viewportSize, tokenSymbol }: TransactionsPageParams) { | ||
super({ page, iiPage, viewportSize }); | ||
|
||
this.#tokenSymbol = tokenSymbol; | ||
} | ||
|
||
/** | ||
* @override | ||
*/ | ||
async extendWaitForReady(): Promise<void> { | ||
await this.clickByTestId(`${TOKEN_CARD}-${this.#tokenSymbol}`); | ||
} | ||
} |
Oops, something went wrong.