use baseFixture for all spec files
This commit is contained in:
@ -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,
|
||||||
|
@ -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'
|
||||||
|
@ -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'
|
||||||
|
@ -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'
|
||||||
|
@ -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 }) => {
|
||||||
|
@ -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'
|
||||||
|
|
||||||
|
@ -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'
|
||||||
|
@ -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'
|
||||||
|
|
||||||
|
@ -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,
|
||||||
|
@ -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'
|
||||||
|
@ -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'
|
||||||
|
|
||||||
|
@ -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'
|
||||||
|
@ -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'
|
||||||
|
@ -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'
|
||||||
|
@ -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'
|
||||||
|
@ -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'
|
||||||
|
@ -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)
|
||||||
|
@ -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,
|
||||||
|
Reference in New Issue
Block a user