@revoloo/cypress6
Version:
Cypress.io end to end testing tool
19 lines (16 loc) • 405 B
HTML
<html>
<head>
<title>Global Parent Fixture</title>
</head>
<body>
<span class="foo">Foo</span>
</body>
<script>
// This is defined to create a global parent which
// can cause issues when calling win.parent later
// since the win.parent is now this element
// https://github.com/cypress-io/cypress/issues/6412
var parent = document.querySelector(".foo")
</script>
</html>