GithubHelp home page GithubHelp logo

data-attributes about playwright-ct-web HOT 4 CLOSED

sand4rt avatar sand4rt commented on June 3, 2024
data-attributes

from playwright-ct-web.

Comments (4)

sand4rt avatar sand4rt commented on June 3, 2024

Thank you for creating the issue! Could you tell a bit more about why this is useful for testing?

from playwright-ct-web.

Anmo avatar Anmo commented on June 3, 2024

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.

sand4rt avatar sand4rt commented on June 3, 2024

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.

sand4rt avatar sand4rt commented on June 3, 2024

Closed due to inactivity, feel free to create a new ticket whenever needed

from playwright-ct-web.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.