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

mozilla / blurts-server / 8f1d960f-a1b2-42b3-89d4-5e0b2b4f8e83

pending completion
8f1d960f-a1b2-42b3-89d4-5e0b2b4f8e83

Pull #2854

circleci

Joey Zhou
run tests
Pull Request #2854: MNTOR-741

282 of 1394 branches covered (20.23%)

Branch coverage included in aggregate %.

91 of 91 new or added lines in 7 files covered. (100.0%)

959 of 3823 relevant lines covered (25.09%)

4.08 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

9
import { chromium } from '@playwright/test'
10

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

16
  // generate email and set env variables
17
  const randomEmail = `${Date.now()}_tstact@restmail.net`
×
18
  setEnvVariables(randomEmail)
×
19

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

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

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

35
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