Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DO NOT MERGE: Failing test for 3.5 broken input date support #52

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion appveyor-win32-x64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ install:
# Post-install test scripts.
test_script:
- node_modules\.bin\run-if npm run cypress:verify
- node_modules\.bin\run-if npm run cypress:run -- --record
- node_modules\.bin\run-if npm run cypress:run
# ugghh, what is wrong with Windows not finding files by wildcard
# - node_modules\.bin\run-if npm run check-videos

Expand Down
2 changes: 1 addition & 1 deletion appveyor-win32-x86.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ install:
# Post-install test scripts.
test_script:
- node_modules\.bin\run-if npm run cypress:verify
- node_modules\.bin\run-if npm run cypress:run -- --record
- node_modules\.bin\run-if npm run cypress:run
# ugghh, what is wrong with Windows not finding files by wildcard
# - node_modules\.bin\run-if npm run check-videos

Expand Down
10 changes: 8 additions & 2 deletions cypress/integration/spec.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
describe('page', () => {
it('works', () => {})
describe('typing into date field', () => {
it('works', () => {
cy.visit("index.html")
cy.get("#mydate").type("1995-12-04")
cy.window().then(window => {
expect(window.receivedInput).to.be.true
})
})
})
15 changes: 15 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<!doctype html>
<html lang="en">
<body>
<label for="mydate">
<input id="mydate" type="date">
</label>
<script>
window.receivedInput = false
document.getElementById("mydate").addEventListener("input", event => {
window.receivedInput = true
console.log("receiving input", event)
})
</script>
</body>
</html>
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"author": "Gleb Bahmutov <gleb@cypress.io>",
"license": "ISC",
"devDependencies": {
"cypress": "^3.5.0",
"ok-file": "1.4.0"
},
"repository": {
Expand Down
Loading