Skip to content

Commit

Permalink
chore(playwright): project types (#26165)
Browse files Browse the repository at this point in the history
  • Loading branch information
sean-perkins committed Oct 26, 2022
1 parent 8ac3b8b commit b364d58
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions core/playwright.config.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import type { PlaywrightTestConfig } from '@playwright/test';
import type { PlaywrightTestConfig, PlaywrightTestOptions, PlaywrightWorkerOptions, Project } from '@playwright/test';
import { devices, expect } from '@playwright/test';

import { matchers } from './src/utils/test/playwright';

expect.extend(matchers);

const projects = [
const projects: Project<PlaywrightTestOptions, PlaywrightWorkerOptions>[] = [
{
/**
* This is really just desktop Firefox
Expand All @@ -24,10 +24,6 @@ const projects = [
width: 393,
height: 727
},
screen: {
width: 393,
height: 851
}
},
},
{
Expand All @@ -49,7 +45,7 @@ const projects = [
const modes = ['ios', 'md'];

const generateProjects = () => {
const projectsWithMetadata = [];
const projectsWithMetadata: Project<PlaywrightTestOptions, PlaywrightWorkerOptions>[] = [];

modes.forEach(mode => {
projects.forEach(project => {
Expand Down Expand Up @@ -105,9 +101,6 @@ const config: PlaywrightTestConfig = {
use: {
/* Maximum time each action such as `click()` can take. Defaults to 0 (no limit). */
actionTimeout: 0,
/* Base URL to use in actions like `await page.goto('/')`. */
// baseURL: 'http://localhost:3000',

/**
* All failed tests should create
* a trace file for easier debugging.
Expand Down

0 comments on commit b364d58

Please sign in to comment.