Comments (4)
Thank you for creating the issue! Could you tell a bit more about why this is useful for testing?
from playwright-ct-web.
sorry for the late reply
This is just a nice to have, like I said in the description, with the support for attributes on #6 we can use pass data attributes, but would be easy to use this way, because instead of writing the name of the data attribute with -
and therefore the need for using a string, like this:
mount(Button, {
attributes: {
'data-attribute-name': true,
},
});
you would be able to pass a camel case name (and therefore, without being a string), like this:
mount(Button, {
dataAttributes: {
attributeName: true,
},
});
from playwright-ct-web.
This is just a nice to have
I don't see how the behaviour of the component is tested with dataAttributes. I'm hesitant to add this because i don't want to deviate from Playwright's API unless there is a good reason.
from playwright-ct-web.
Closed due to inactivity, feel free to create a new ticket whenever needed
from playwright-ct-web.
Related Issues (11)
- does it support older version of @playwright/test? HOT 17
- Issue with v1.33 HOT 2
- Idea/Feature: provide more powerful way to create test cases (mount) HOT 6
- Remove vite as dependency HOT 3
- Object literal may only specify known properties, and 'title' does not exist in type 'ComponentProps<Button>' HOT 5
- Reason for only allowing JsonPrimitives as props HOT 6
- Example in monorepo works, can't get it too work on my own project or clean vite install. HOT 5
- Not possible to test using attributes HOT 3
- LIT decorators HOT 5
- Playwright version 1.33.0 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from playwright-ct-web.