use baseFixture for all spec files

This commit is contained in:
ryanrosello-og
2024-08-11 08:50:48 +10:00
parent d97a4d27b2
commit 11cfb54487
18 changed files with 35 additions and 18 deletions

View File

@ -1,4 +1,5 @@
import { test, expect, Page } from '@playwright/test' import { test } from './lib/base-fixture'
import { expect, Page } from '@playwright/test'
import { import {
getUtils, getUtils,
TEST_COLORS, TEST_COLORS,

View File

@ -1,4 +1,5 @@
import { test, expect } from '@playwright/test' import { test } from './lib/base-fixture'
import { expect } from '@playwright/test'
import { getUtils, setup, tearDown } from './test-utils' import { getUtils, setup, tearDown } from './test-utils'
import { EngineCommand } from 'lang/std/artifactGraph' import { EngineCommand } from 'lang/std/artifactGraph'
import { uuidv4 } from 'lib/utils' import { uuidv4 } from 'lib/utils'

View File

@ -1,4 +1,5 @@
import { test, expect } from '@playwright/test' import { test } from './lib/base-fixture'
import { expect } from '@playwright/test'
import { getUtils, setup, tearDown } from './test-utils' import { getUtils, setup, tearDown } from './test-utils'
import { bracket } from 'lib/exampleKcl' import { bracket } from 'lib/exampleKcl'

View File

@ -1,4 +1,5 @@
import { test, expect } from '@playwright/test' import { test } from './lib/base-fixture'
import { expect } from '@playwright/test'
import { getUtils, setup, tearDown } from './test-utils' import { getUtils, setup, tearDown } from './test-utils'
import { KCL_DEFAULT_LENGTH } from 'lib/constants' import { KCL_DEFAULT_LENGTH } from 'lib/constants'

View File

@ -1,4 +1,5 @@
import { test, expect } from '@playwright/test' import { test } from './lib/base-fixture'
import { expect } from '@playwright/test'
import { getUtils, setup, tearDown } from './test-utils' import { getUtils, setup, tearDown } from './test-utils'
test.beforeEach(async ({ context, page }) => { test.beforeEach(async ({ context, page }) => {

View File

@ -1,4 +1,5 @@
import { test, expect } from '@playwright/test' import { test } from './lib/base-fixture'
import { expect } from '@playwright/test'
import { uuidv4 } from 'lib/utils' import { uuidv4 } from 'lib/utils'
import { getUtils, setup, tearDown } from './test-utils' import { getUtils, setup, tearDown } from './test-utils'

View File

@ -1,4 +1,5 @@
import { test, expect } from '@playwright/test' import { test } from './lib/base-fixture'
import { expect } from '@playwright/test'
import { getUtils, setup, tearDown } from './test-utils' import { getUtils, setup, tearDown } from './test-utils'
import { bracket } from 'lib/exampleKcl' import { bracket } from 'lib/exampleKcl'

View File

@ -1,4 +1,5 @@
import { test, expect } from '@playwright/test' import { test } from './lib/base-fixture'
import { expect } from '@playwright/test'
import { getUtils, setup, tearDown } from './test-utils' import { getUtils, setup, tearDown } from './test-utils'

View File

@ -1,4 +1,5 @@
import { test, expect, Page } from '@playwright/test' import { test } from './lib/base-fixture'
import { expect, Page } from '@playwright/test'
import { import {
getMovementUtils, getMovementUtils,

View File

@ -1,4 +1,5 @@
import { test, expect } from '@playwright/test' import { test } from './lib/base-fixture'
import { expect } from '@playwright/test'
import { secrets } from './secrets' import { secrets } from './secrets'
import { Paths, doExport, getUtils } from './test-utils' import { Paths, doExport, getUtils } from './test-utils'
import { Models } from '@kittycad/lib' import { Models } from '@kittycad/lib'

View File

@ -1,4 +1,5 @@
import { test, expect } from '@playwright/test' import { test } from './lib/base-fixture'
import { expect } from '@playwright/test'
import { commonPoints, getUtils, setup, tearDown } from './test-utils' import { commonPoints, getUtils, setup, tearDown } from './test-utils'

View File

@ -1,4 +1,5 @@
import { test, expect } from '@playwright/test' import { test } from './lib/base-fixture'
import { expect } from '@playwright/test'
import { EngineCommand } from 'lang/std/artifactGraph' import { EngineCommand } from 'lang/std/artifactGraph'
import { uuidv4 } from 'lib/utils' import { uuidv4 } from 'lib/utils'
import { getUtils, setup, tearDown } from './test-utils' import { getUtils, setup, tearDown } from './test-utils'

View File

@ -1,4 +1,5 @@
import { test, expect } from '@playwright/test' import { test } from './lib/base-fixture'
import { expect } from '@playwright/test'
import { getUtils, setup, tearDown, TEST_COLORS } from './test-utils' import { getUtils, setup, tearDown, TEST_COLORS } from './test-utils'
import { XOR } from 'lib/utils' import { XOR } from 'lib/utils'

View File

@ -1,4 +1,5 @@
import { test, expect } from '@playwright/test' import { test } from './lib/base-fixture'
import { expect } from '@playwright/test'
import { getUtils, setup, tearDown } from './test-utils' import { getUtils, setup, tearDown } from './test-utils'
import { uuidv4 } from 'lib/utils' import { uuidv4 } from 'lib/utils'

View File

@ -1,4 +1,5 @@
import { test, expect, Page } from '@playwright/test' import { test } from './lib/base-fixture'
import { expect, Page } from '@playwright/test'
import { deg, getUtils, setup, tearDown, wiggleMove } from './test-utils' import { deg, getUtils, setup, tearDown, wiggleMove } from './test-utils'
import { LineInputsType } from 'lang/std/sketchcombos' import { LineInputsType } from 'lang/std/sketchcombos'

View File

@ -1,4 +1,5 @@
import { test, expect } from '@playwright/test' import { test } from './lib/base-fixture'
import { expect } from '@playwright/test'
import { commonPoints, getUtils, setup, tearDown } from './test-utils' import { commonPoints, getUtils, setup, tearDown } from './test-utils'
import { Coords2d } from 'lang/std/sketch' import { Coords2d } from 'lang/std/sketch'

View File

@ -1,9 +1,9 @@
import { test } from './lib/base-fixture'
import { expect } from '@playwright/test' import { expect } from '@playwright/test'
import { getUtils, setup, tearDown } from './test-utils' import { getUtils, setup, tearDown } from './test-utils'
import { SaveSettingsPayload } from 'lib/settings/settingsTypes' import { SaveSettingsPayload } from 'lib/settings/settingsTypes'
import { TEST_SETTINGS_KEY, TEST_SETTINGS_CORRUPTED } from './storageStates' import { TEST_SETTINGS_KEY, TEST_SETTINGS_CORRUPTED } from './storageStates'
import * as TOML from '@iarna/toml' import * as TOML from '@iarna/toml'
import { test } from './lib/base-fixture'
test.beforeEach(async ({ context, page }) => { test.beforeEach(async ({ context, page }) => {
await setup(context, page) await setup(context, page)

View File

@ -1,4 +1,5 @@
import { test, expect } from '@playwright/test' import { test } from './lib/base-fixture'
import { expect } from '@playwright/test'
import { import {
doExport, doExport,