Skip to content

Commit

Permalink
test(homepage): add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
DenysKarmazynDFINITY committed Aug 20, 2024
1 parent aa66058 commit 2e27948
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion e2e/utils/pages/homepage.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ export class HomepageLoggedOut extends Homepage {
super(page);
}

/**
* @override
*/
async waitForReady(): Promise<void> {
await this.waitForHomepageReady();
}
Expand All @@ -67,7 +70,7 @@ export class HomepageLoggedIn extends Homepage {
async waitForAuthentication(): Promise<void> {
await this.#iiPage.waitReady({
url: LOCAL_REPLICA_URL,
// TODO: take this value from vite.utils or FE constants
// TODO: take this value from env vars
canisterId: 'rdmx6-jaaaa-aaaaa-aaadq-cai'
});

Expand All @@ -76,6 +79,9 @@ export class HomepageLoggedIn extends Homepage {
await this.#iiPage.signInWithNewIdentity();
}

/**
* @override
*/
async waitForReady(): Promise<void> {
await this.waitForAuthentication();

Expand Down

0 comments on commit 2e27948

Please sign in to comment.