Code Monkey home page Code Monkey logo

cyclope's People

Contributors

bahmutov avatar renovate-bot avatar renovate[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

cyclope's Issues

Handle serialize for checkboxes with image and linear gradient

From #5

style.css has (not working version is commented out)

/* CHECKED CARD */

.card .cb-container .cb-input:checked + .check {
  /* background: url("../assets/images/icon-check.svg"),
    linear-gradient(45deg, var(--clr-green), var(--clr-pink)); */
  background: url('../assets/images/icon-check.svg');
  background-color: var(--clr-green);
  background-repeat: no-repeat;
  background-position: center;
}

Improve module exports design

Please, separate module exports with the commands inititialisation, so you can import 'cyclope/commands'.

Otherwise, if I want to import anything, it throws an error, as there is no cypress initialized.

image

Fix failure when some resource in not available or enhance with whitelist

In case you have part of resources unavailable (missing image e.g.) the plugin will fail with this error:

image

This issue has at least 2 negative sides:

  • You can't use plugin in your project, sometimes you are not able to fix the bugs on your own, so you have to avoid cyclope at all
  • Any bug with 404 error will break the plugin here

A proposal here can be to add some glob pattern ignore list, so if the resource is unavailable, we can simply skip it:

require('cyclope/plugin')(on, config, {
      ignoreFailed: ['assets/**/*.png'],
  });

In case you wan't to ignore all failures:

require('cyclope/plugin')(on, config, {
      ignoreFailed: true,
  });

@bahmutov could you extend the plugin, please?

Thanks in advance ๐Ÿ™‡

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

This repository currently has no open or pending branches.

Detected dependencies

circleci
.circleci/config.yml
  • cypress/base 20.11.0
github-actions
.github/workflows/badges.yml
.github/workflows/ci.yml
  • cypress-io/github-action v5
  • cypress-io/github-action v5
  • cycjimmy/semantic-release-action v3
npm
package.json
  • cypress 13.7.0
  • cypress-expect 3.1.0
  • cypress-real-events 1.12.0
  • prettier 3.2.5
  • semantic-release 23.0.4

  • Check this box to trigger a request for Renovate to run again on this repository

Having TypeError: Cannot read properties of undefined (reading 'realHover')

I'm having an undefined error when running cypress tests with Cypress version from 11.1.0 to 12.0.2.
Please find the error below,

Because this error occurred during a before all hook we are skipping all of the remaining tests.
at $Cypress.eval (webpack:////Users/###/node_modules/cyclope/src/index.js:12:0)

savePageIfTestFailed on cypress 10

I struggle to finish savePageIfTestFailed using cypress ten, especially the snippet for support/index.js causes an issue:

import { savePageIfTestFailed } from 'cyclope'
afterEach(savePageIfTestFailed)

The import from causes this error:

File '/home/jomarko/redhat/smart-events/sandbox-ui/node_modules/cyclope/src/index.d.ts' is not a module.ts(2306)

Do you have any suggestion how to setup cyclope for cypress 10 project?

Zip into a buffer

Can we save the full page, zip it up, and return the zip as a buffer

Keep track of the parent element selector

When using cyclope as a child command, form the element selector automatically

// get an image of the todos element
// instead of this
cy.get('.todos').cyclope('todos.png', {
   elementSelector: '.todos',
})
// automatically limit the image to ".todos"
cy.get('.todos').cyclope('todos.png')

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.