From 2e27948ba1110bc2822ec0ee66ac9ba74f25c495 Mon Sep 17 00:00:00 2001 From: DenysKarmazynDFINITY Date: Tue, 20 Aug 2024 18:08:30 +0200 Subject: [PATCH] test(homepage): add comments --- e2e/utils/pages/homepage.page.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/e2e/utils/pages/homepage.page.ts b/e2e/utils/pages/homepage.page.ts index 127f8b791d..94c5a6a9d9 100644 --- a/e2e/utils/pages/homepage.page.ts +++ b/e2e/utils/pages/homepage.page.ts @@ -50,6 +50,9 @@ export class HomepageLoggedOut extends Homepage { super(page); } + /** + * @override + */ async waitForReady(): Promise { await this.waitForHomepageReady(); } @@ -67,7 +70,7 @@ export class HomepageLoggedIn extends Homepage { async waitForAuthentication(): Promise { 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' }); @@ -76,6 +79,9 @@ export class HomepageLoggedIn extends Homepage { await this.#iiPage.signInWithNewIdentity(); } + /** + * @override + */ async waitForReady(): Promise { await this.waitForAuthentication();