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 {
getUtils,
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 { EngineCommand } from 'lang/std/artifactGraph'
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 { 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 { 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'
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 { 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 { 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'

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 {
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 { Paths, doExport, getUtils } from './test-utils'
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'

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 { uuidv4 } from 'lib/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 { 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 { 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 { 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 { Coords2d } from 'lang/std/sketch'

View File

@ -1,9 +1,9 @@
import { test } from './lib/base-fixture'
import { expect } from '@playwright/test'
import { getUtils, setup, tearDown } from './test-utils'
import { SaveSettingsPayload } from 'lib/settings/settingsTypes'
import { TEST_SETTINGS_KEY, TEST_SETTINGS_CORRUPTED } from './storageStates'
import * as TOML from '@iarna/toml'
import { test } from './lib/base-fixture'
test.beforeEach(async ({ 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 {
doExport,