Skip to content

Commit 068f226

Browse files
committed
fix build
1 parent 227e5b3 commit 068f226

File tree

2 files changed

+14
-8
lines changed

2 files changed

+14
-8
lines changed

packages/driver/cypress/e2e/commands/prompt/prompt.cy.ts

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,13 @@ describe('src/cy/commands/prompt', () => {
77
return
88
}
99

10-
cy.visit('http://www.foobar.com:3500/fixtures/dom.html')
10+
cy.visit('http://www.foobar.com:3500/fixtures/prompt.html')
1111

1212
// TODO: add more tests when cy.prompt is built out, but for now this just
1313
// verifies that the command executes without throwing an error
1414
// @ts-expect-error - this will not error when we actually release the experimentalPromptCommand flag
15-
cy.prompt(['Hello, world!'])
15+
cy.prompt(['Click the "click me" button'])
1616

17-
cy.visit('http://www.barbaz.com:3500/fixtures/dom.html')
18-
19-
cy.origin('http://www.barbaz.com:3500', () => {
20-
// @ts-expect-error - this will not error when we actually release the experimentalPromptCommand flag
21-
cy.prompt(['Hello, world!'])
22-
})
17+
cy.get('#log').should('contain', 'clicked')
2318
})
2419
})
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<html>
2+
<body>
3+
<button onclick="onClick()">Click me</button>
4+
<div id="log"></div>
5+
<script>
6+
function onClick() {
7+
document.getElementById('log').textContent = 'clicked'
8+
}
9+
</script>
10+
</body>
11+
</html>

0 commit comments

Comments
 (0)