UNPKG

@revoloo/cypress6

Version:

Cypress.io end to end testing tool

31 lines (28 loc) 677 B
<!DOCTYPE html> <html> <head> <title></title> <script type="text/javascript" src="static/jquery.js"></script> </head> <body> <button id="fetch">fetch</button> <button id="create">create</button> <script type="text/javascript"> $(function(){ $("button#create").click(function(){ $.ajax({ method: "POST", url: "/users/1", data: JSON.stringify({some: "data"}) }) }) $("button#fetch").click(function(){ $.getJSON("/users") }) $("button#pushState").click(function(){ window.history.pushState({foo: "bar"}, null, "pushState.html") }) }) </script> </body> </html>