You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Syn is callback-based, this makes it cumbersome to test sequential behaviors:
it("does something after 2 clicks",function(){syn.click("foo",function(){syn.click("bar",function(){// CHECK SOMETHING HERE})})})
If syn returned promises, this can get cleaned up quite a bit:
it("does something after 2 clicks",asyncfunction(){awaitsyn.click("foo");awaitsyn.click("bar");// CHECK SOMETHING HERE})
Finally, syn works with element ids, not CSS selectors (CSS selectors were not widely supported when it was first created). I'd like to change that:
it("does something after 2 clicks",asyncfunction(){awaitsyn.click(".foo");awaitsyn.click("#bar");// CHECK SOMETHING HERE})
I think these 2 changes will make syn much easier to use on its own. I'd also like to make syn a single ES module so it can be easily imported into any app.
The text was updated successfully, but these errors were encountered:
I've started developing a
syn 1.0
. The goals:Make the syntax easier to use in modern browsers
Syn is callback-based, this makes it cumbersome to test sequential behaviors:
If syn returned promises, this can get cleaned up quite a bit:
Finally, syn works with element ids, not CSS selectors (CSS selectors were not widely supported when it was first created). I'd like to change that:
I think these 2 changes will make syn much easier to use on its own. I'd also like to make syn a single ES module so it can be easily imported into any app.
The text was updated successfully, but these errors were encountered: