• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

mozilla / blurts-server / #12632

pending completion
#12632

push

circleci

web-flow
Merge pull request #2854 from mozilla/MNTOR-741

MNTOR-741

282 of 1416 branches covered (19.92%)

Branch coverage included in aggregate %.

107 of 107 new or added lines in 9 files covered. (100.0%)

959 of 3912 relevant lines covered (24.51%)

2.04 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/e2e/globalSetup.js
1
/* This Source Code Form is subject to the terms of the Mozilla Public
2
 * License, v. 2.0. If a copy of the MPL was not distributed with this
3
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4

5
import { setEnvVariables } from './utils/helpers.js'
6
import { AuthPage } from './pages/authPage.js'
7
import { LandingPage } from './pages/landingPage.js'
8
import { chromium } from '@playwright/test'
9

10
async function globalSetup () {
11
  // playwright setup
12
  const browser = await chromium.launch()
×
13
  const page = await browser.newPage()
×
14

15
  // generate email and set env variables
16
  setEnvVariables(process.env.E2E_TEST_ACCOUNT_EMAIL)
×
17

18
  // commenting out as this its not needed for now
19
  // // go to sign up page
20
  await page.goto(process.env.E2E_TEST_BASE_URL)
×
21
  const landingPage = new LandingPage(page)
×
22
  await landingPage.goToSignIn()
×
23

24
  // // register user with generated email and set as env variable
25
  const authPage = new AuthPage(page)
×
26
  await authPage.signIn(process.env.E2E_TEST_ACCOUNT_EMAIL)
×
27

28
  // // // create reuseable state json
29
  await page.context().storageState({ path: './e2e/storageState.json' })
×
30
  await browser.close()
×
31
}
32

33
export default globalSetup
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc