Skip to content

Conversation

@koji
Copy link
Contributor

@koji koji commented Dec 24, 2025

Overview

fix the following test error

 FAIL  components-testing/tests/protocolDeck.spec.ts [ components-testing/tests/protocolDeck.spec.ts ]
Error: Failed to resolve import "@playwright/test" from "components-testing/tests/protocolDeck.spec.ts". Does the file exist?
  Plugin: vite:import-analysis
  File: /Users/koji/Desktop/dev_test/opentrons/components-testing/tests/protocolDeck.spec.ts:1:29
  1  |  import { expect, test } from "@playwright/test";
     |                                ^
  2  |  test.describe("ProtocolDeck Component", () => {
  3  |    test.beforeEach(async ({ page }) => {
 ❯ formatError node_modules/vitest/node_modules/vite/dist/node/chunks/dep-DkOS1hkm.js:50824:46
 ❯ TransformContext.error node_modules/vitest/node_modules/vite/dist/node/chunks/dep-DkOS1hkm.js:50818:19
 ❯ normalizeUrl node_modules/vitest/node_modules/vite/dist/node/chunks/dep-DkOS1hkm.js:66141:33
 ❯ node_modules/vitest/node_modules/vite/dist/node/chunks/dep-DkOS1hkm.js:66296:47
 ❯ TransformContext.transform node_modules/vitest/node_modules/vite/dist/node/chunks/dep-DkOS1hkm.js:66217:13
 ❯ Object.transform node_modules/vitest/node_modules/vite/dist/node/chunks/dep-DkOS1hkm.js:51133:30
 ❯ loadAndTransform node_modules/vitest/node_modules/vite/dist/node/chunks/dep-DkOS1hkm.js:53888:29

close AUTH-2649

Test Plan and Hands on Testing

cd components-testing
pnpm exec playwright install
pnpm run test

Describe your testing of the PR. Emphasize testing not reflected in the code. Attach protocols, logs, screenshots and any other assets that support your testing.

Changelog

List changes introduced by this PR considering future developers and the end user. Give careful thought and clear documentation to breaking changes.

Review requests

  • What do you need from reviewers to feel confident this PR is ready to merge?
  • Ask questions.

Risk assessment

low

fix the following test error

close AUTH-2649
@koji koji requested a review from y3rsh December 24, 2025 01:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants