diff options
author | Chocobozzz <me@florianbigard.com> | 2023-05-25 11:41:29 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2023-05-25 11:41:29 +0200 |
commit | a41b944398af03ad7594380ad1cb7a978f6417cb (patch) | |
tree | b90c6304143463233f477a4511afa67485f17fa3 /client/e2e/src/suites-local/signup.e2e-spec.ts | |
parent | 22b34b2d7570392a5623cc6aa97a935a03399591 (diff) | |
download | PeerTube-a41b944398af03ad7594380ad1cb7a978f6417cb.tar.gz PeerTube-a41b944398af03ad7594380ad1cb7a978f6417cb.tar.zst PeerTube-a41b944398af03ad7594380ad1cb7a978f6417cb.zip |
Fix local e2e tests
Diffstat (limited to 'client/e2e/src/suites-local/signup.e2e-spec.ts')
-rw-r--r-- | client/e2e/src/suites-local/signup.e2e-spec.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/client/e2e/src/suites-local/signup.e2e-spec.ts b/client/e2e/src/suites-local/signup.e2e-spec.ts index aaf5683f1..98dc469c9 100644 --- a/client/e2e/src/suites-local/signup.e2e-spec.ts +++ b/client/e2e/src/suites-local/signup.e2e-spec.ts | |||
@@ -243,8 +243,10 @@ describe('Signup', () => { | |||
243 | let emailPort: number | 243 | let emailPort: number |
244 | 244 | ||
245 | before(async () => { | 245 | before(async () => { |
246 | const key = browser.options.baseUrl + '-emailPort' | ||
246 | // FIXME: typings are wrong, get returns a promise | 247 | // FIXME: typings are wrong, get returns a promise |
247 | emailPort = await (browser.sharedStore.get(browser.options.baseUrl + '-emailPort') as unknown as Promise<number>) | 248 | // FIXME: use * because the key is not properly escaped by the shared store when using get(key) |
249 | emailPort = (await (browser.sharedStore.get('*') as unknown as Promise<number>))[key] | ||
248 | 250 | ||
249 | await MockSMTPServer.Instance.collectEmails(emailPort, emails) | 251 | await MockSMTPServer.Instance.collectEmails(emailPort, emails) |
250 | }) | 252 | }) |