Files
cypress/system-tests/projects/e2e/xhr.html
T
Jessica Sachs a045e4f59a chore: move server e2e tests to system-tests (#16354)
Co-authored-by: Brian Mann <brian.mann86@gmail.com>
Co-authored-by: Zach Bloomquist <git@chary.us>
Co-authored-by: Zach Bloomquist <github@chary.us>
2021-10-18 19:53:14 +00:00

31 lines
677 B
HTML

<!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>