@revoloo/cypress6
Version:
Cypress.io end to end testing tool
20 lines (19 loc) • 491 B
HTML
<html>
<head>
<title>jQuery 3.2.1 Fixture</title>
<script type="text/javascript" src="/fixtures/jquery-3.2.1.js"></script>
</head>
<body>
<button id="trigger-xhr">Trigger XHR</button>
<div id="result">Result</div>
<script>
$('#trigger-xhr').click(function(event) {
$.post('/test-xhr', function(data) {
$('#result').text(JSON.stringify(data))
})
event.preventDefault()
})
</script>
</body>
</html>