-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature]: Better reporting around "Couldn't find a Program" for component tests #34831
Comments
Hi! This sounds like a bug to me. Could you show me what |
Here is the spec: ApiLink.spec.js import { test, expect } from "@playwright/experimental-ct-vue2";
import ApiLink from "@/components/ApiLink.vue";
test.use({ viewport: { width: 500, height: 500 } });
test.describe("ApiLink as list", async () => {
test.beforeEach(async ({ page, mount }) => {
});
test("should show link to api viewer", async ({ mount }) => {
const component = await mount(ApiLink, {
props: {
link: "example.com",
list: true,
},
});
await expect(component).toContainText("Copy curl command");
});
test("should show link to copy curl command", async ({ mount }) => {
const component = await mount(ApiLink, {
props: {
link: "example.com",
list: true,
},
});
await expect(component).toContainText("Copy curl command");
});
}); of note, though - the bug above is printed for every spec file.. |
Hmm, I can't reproduce the error based on that. Could you provide me with a minimal reproduction repository? Also, I noticed your first line imports |
here is the package - https://www.npmjs.com/package/@playwright/experimental-ct-vue2. i am working on a repro |
That package isn't being updated anymore. Please check if the issue also exists with |
You most likely have multiple versions of |
🚀 Feature Request
I recently upgraded a vue 2 project to the latest playwright and I am getting this weird error when running component tests:
I can't locate the source of the error and I have no idea what program it is trying to find. It just spits this error message out for every test in my suite.
Example
Developers would be able to understand which program is missing (or whatever this message really means) so they can understand if this is a playwright configuration issue, a testing setup issue, or whether it is something else.
Motivation
I would like my component tests to work.
The text was updated successfully, but these errors were encountered: