]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/e2e/src/suites-local/signup.e2e-spec.ts
Fix local e2e tests
[github/Chocobozzz/PeerTube.git] / client / e2e / src / suites-local / signup.e2e-spec.ts
index aaf5683f17ec7ad9b73e2d788c093a760259e08b..98dc469c9c1fbd57eb1591d687df76c927bd719a 100644 (file)
@@ -243,8 +243,10 @@ describe('Signup', () => {
     let emailPort: number
 
     before(async () => {
+      const key = browser.options.baseUrl + '-emailPort'
       // FIXME: typings are wrong, get returns a promise
-      emailPort = await (browser.sharedStore.get(browser.options.baseUrl + '-emailPort') as unknown as Promise<number>)
+      // FIXME: use * because the key is not properly escaped by the shared store when using get(key)
+      emailPort = (await (browser.sharedStore.get('*') as unknown as Promise<number>))[key]
 
       await MockSMTPServer.Instance.collectEmails(emailPort, emails)
     })