Replies: 1 comment 3 replies
-
I'm using this: // Select an option in a vuetify selectbox with a certain id
export async function vuetifySelectByTestId(page: Page, id: string, text: string) {
await page.getByTestId(id).click();
await page
.locator('.v-select__content .v-list-item')
.filter({ has: page.getByText(text, { exact: true }) })
.click();
} And then in my tests use this function like: await vuetifySelectById(page, 'filter-input', 'Department'); |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I can't find any way to test the functionality of a v-select component using playwright.
With vuetify 2.7, I clicked on the element by id and then clicked on the item by label.
For example, having a v-select element:
The following playwright code used to do the job (in vuetify 2.7):
Trying to migrate to vuetify 3, I'm using the following code:
However, it fails (times out) on the line where I click the select element. The logs show:
Beta Was this translation helpful? Give feedback.
All reactions