bahmutov / cypress-fiddle

Generate Cypress tests from HTML and JS
https://glebbahmutov.com/blog/cypress-fiddle/
2 stars 1 forks source link

feat: add CSS block #9

Closed bahmutov closed 2 years ago

bahmutov commented 2 years ago

You can apply CSS style to the HTML without showing it on the page

const test = {
  html: source`
    <div id="greeting">Hello</div>
  `,
  css: source`
    #greeting {
      color: #f0f;
      padding: 1rem;
      font-weight: bold;
    }
  `,
}
cy.runExample(test)
github-actions[bot] commented 2 years ago

:tada: This PR is included in version 2.5.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: