Code Monkey home page Code Monkey logo

cypress-ag-grid-bug-stopeditingwhengridlosesfocus's Introduction

CypressAgGridBug

This is a small repo to demonstrate a bug that occurs in a Cypress test when using an ag-grid editable grid with the stopEditingWhenGridLosesFocus flag on Chromium.

This is a toy app to expose the bug which was really discovered in a proprietary codebase.

Steps to reproduce

  1. Clone this repo.
  2. Run yarn to install dependencies
  3. Run yarn e2e --watch to run Cypress in watch mode.
  4. See a successful running test (it loads a table of sample data, asserts the values, changes two of the values with text that has multiple characters, and asserts that the new values are accepted).
  5. Make a trivial change to app.spec.ts (like adding a space at the end of a line).
  6. See that the second run will fail (only the last characters of the new values will be visible).

Notes

The bug manifests under these conditions:

  • Hot reload
  • On Electron 87, Chrome 89, and Edge 89
  • With stopEditingWhenGridLosesFocus used in ag-grid

The bug does not manifest under these conditions:

  • Initial execution
  • After hitting the replay button
  • On Firefox 86 (I have not tested other browsers)
  • Without the stopEditingWhenGridLosesFocus flag

This seems to be the same general problem that was reported in cypress-io/cypress#5394, but that was apparently fixed. I don't know if this demonstrates a regression, or if it was a previously-unknown corner case.

Reported

This issue was reported both to Cypress and ag-grid (paywall).

cypress-ag-grid-bug-stopeditingwhengridlosesfocus's People

Watchers

 avatar  avatar

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.