• 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/playwright.config.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 { defineConfig, devices } from '@playwright/test'
6
/**
7
 * Read environment variables from file.
8
 * https://github.com/motdotla/dotenv
9
 */
10
import * as dotenv from 'dotenv'
11
dotenv.config()
×
12
/**
13
 * @see https://playwright.dev/docs/test-configuration
14
 */
15
export default defineConfig({
16
  testDir: './e2e/specs',
17
  /* Maximum time one test can run for. */
18
  timeout: 60_000,
19

20
  /* Global setup */
21
  globalSetup: './e2e/globalSetup.js',
22

23
  /* Max time in milliseconds the whole test suite can to prevent CI breaking. */
24
  globalTimeout: 360_000,
25

26
  // adding missing snapshots for later comparison
27
  updateSnapshots: 'missing',
28

29
  expect: {
30
    /**
31
     * Maximum time expect() should wait for the condition to be met.
32
     * For example in `await expect(locator).toHaveText();`
33
     */
34
    timeout: 5_000
35
  },
36

37
  /* Run tests in files in parallel */
38
  fullyParallel: true,
39

40
  /* Fail the build on CI if you accidentally left test.only in the source code. */
41
  forbidOnly: !!process.env.CI,
42

43
  /* Retry on CI only */
44
  retries: process.env.CI ? 2 : 0,
×
45

46
  /* Opt out of parallel tests on CI. */
47
  workers: process.env.CI ? 1 : undefined,
×
48

49
  /* Reporter to use. See https://playwright.dev/docs/test-reporters */
50
  reporter: 'html',
51

52
  /* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
53
  use: {
54
    /* Maximum time each action such as `click()` can take. Defaults to 0 (no limit). */
55
    actionTimeout: 0,
56
    /* Base URL to use in actions like `await page.goto('/')`. */
57
    baseURL: process.env.E2E_TEST_BASE_URL || 'https://stage.firefoxmonitor.nonprod.cloudops.mozgcp.net',
×
58
    // baseURL: 'http://localhost:6060',
59

60
    /* automatically take screenshot only on failures */
61
    screenshot: 'only-on-failure',
62

63
    /* automatically record video on retry  */
64
    video: 'retry-with-video',
65

66
    /* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
67
    trace: 'on-first-retry'
68
  },
69

70
  /* Configure projects for major browsers */
71
  projects: [
72
    {
73
      name: 'chromium',
74
      use: { ...devices['Desktop Chrome'] }
75
    }
76

77
    // {
78
    //   name: 'firefox',
79
    //   use: { ...devices['Desktop Firefox'] }
80
    // }
81

82
    /* Test against mobile viewports. */
83
    // {
84
    //   name: 'Mobile Chrome',
85
    //   use: { ...devices['Pixel 5'] }
86
    // }
87
    // {
88
    //   name: 'Mobile Safari',
89
    //   use: { ...devices['iPhone 12'] },
90
    // },
91

92
    /* Test against branded browsers. */
93
    // {
94
    //   name: 'Microsoft Edge',
95
    //   use: { channel: 'msedge' },
96
    // },
97
    // {
98
    //   name: 'Google Chrome',
99
    //   use: { channel: 'chrome' },
100
    // },
101
  ],
102

103
  /* Folder for test artifacts such as screenshots, videos, traces, etc. */
104
  outputDir: './e2e/test-results/',
105

106
  /* Run your local dev server before starting the tests */
107
  webServer: {
108
    command: 'npm start',
109
    port: 6060
110
  }
111
})
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