• 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/pages/authPage.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 { getVerificationCode } from '../utils/helpers.js'
6

7
export class AuthPage {
8
  constructor (page) {
9
    this.page = page
×
10
    this.emailInputField = page.locator('input[name="email"]')
×
11
    this.passwordInputField = page.locator('#password')
×
12
    this.passwordConfirmInputField = page.locator('#vpassword')
×
13
    this.ageInputField = page.locator('#age')
×
14
    this.continueButton = page.locator('#submit-btn')
×
15
    this.verifyCodeInputField = page.locator('div.card input')
×
16
  }
17

18
  async continue () {
19
    await Promise.all([
×
20
      this.page.waitForNavigation(),
21
      this.continueButton.click()
22
    ])
23
  }
24

25
  async enterVerificationCode (code) {
26
    await this.verifyCodeInputField.fill(code)
×
27
    await this.continue()
×
28
  }
29

30
  async enterEmail (email) {
31
    await this.emailInputField.fill(email)
×
32
    await this.continue()
×
33
  }
34

35
  async enterPassword () {
36
    await this.passwordInputField.fill(process.env.E2E_TEST_ACCOUNT_PASSWORD)
×
37
    await this.continue()
×
38
  }
39

40
  async signIn (email) {
41
    await this.enterEmail(email)
×
42
    await this.enterPassword()
×
43
  }
44

45
  async signUp (email, page) {
46
    await this.enterEmail(email)
×
47
    await this.passwordInputField.fill(process.env.E2E_TEST_ACCOUNT_PASSWORD)
×
48
    await this.passwordConfirmInputField.fill(process.env.E2E_TEST_ACCOUNT_PASSWORD)
×
49
    await this.ageInputField.type('31')
×
50
    await this.continue()
×
51
    const vc = await getVerificationCode(email, page)
×
52
    await this.enterVerificationCode(vc)
×
53
  }
54
}
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