todomvc icon indicating copy to clipboard operation
todomvc copied to clipboard

Fix cypress test for dojo

Open gj262 opened this issue 6 years ago • 6 comments

Re #1866

The Dojo example fails all cypress tests relating to edit i.e.:

  • should allow me to edit an item
  • should save edits on blur
  • should trim entered text
  • should remove the item if an empty text string was entered

As far as I can tell in Todo.js - saveEdits() - newTitle does not reflect the value of the input. Note: it will pass the test every now and then 😢

Editing works fine in this example when performed manually.

@'ing the credited authors: @jthomas @edchat @asudoh

gj262 avatar Aug 08 '18 02:08 gj262

@kitsonk @dylans Are either of you interested in introducing Dojo2 example of TodoMVC (or is there one already)? Thanks!

asudoh avatar Aug 08 '18 02:08 asudoh

@asudoh there’s a Dojo 2+ todomvc example at https://github.com/dojo/examples/tree/master/todo-mvc

dylans avatar Sep 12 '18 01:09 dylans

@dylans Great to hear! Do you guys want to contribute the code here? Thanks!

asudoh avatar Sep 12 '18 03:09 asudoh

@dylans Great to hear! Do you guys want to contribute the code here? Thanks!

The main reason we haven't is that with our examples repo, we're able to quickly iterate all of our examples with each new release in one place. That said, we're open to contributing the same code here if that's useful.

dylans avatar Sep 12 '18 14:09 dylans

@dylans I think having the example in the TodoMVC Repo and on the website will be very useful to people who want to compare how Dojo works relative to other libraries/frameworks. Also, It may introduce new people to Dojo which is a good thing. WDYT ?

FadySamirSadek avatar Sep 13 '18 07:09 FadySamirSadek

That's fine, though with the HNPWA demos, aren't you linking out to other repos/websites instead of maintaining your own copy? Mostly I'm just concerned with it getting stale... when it's in our examples repo, we keep it current, but when it's external we're more likely to forget about it as we introduce new releases.

dylans avatar Sep 13 '18 15:09 dylans