-
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #98 from quickstrom/action-seq-reselect-fix
Action seq reselect fix
- Loading branch information
Showing
16 changed files
with
154 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Form</title> | ||
</head> | ||
<body> | ||
<form action="ActionSequence.html"> | ||
<input type="text" name="message"> | ||
<input type="submit" value="Go"> | ||
</form> | ||
<script> | ||
const form = document.querySelector("form"); | ||
const params = new URLSearchParams(window.location.search); | ||
const msgParam = params.get('message'); | ||
if (msgParam) { | ||
form.remove(); | ||
let confirm = document.createElement("button"); | ||
confirm.textContent = `Confirm "${msgParam}"`; | ||
confirm.addEventListener("click", () => { | ||
confirm.disabled = true; | ||
}); | ||
document.body.appendChild(confirm); | ||
} | ||
</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
-- This spec only tests that the fixed sequence of actions works, even though | ||
-- the `button` isn't in the DOM until after the form has been submitted. | ||
module Spec where | ||
|
||
import Quickstrom | ||
import Data.Maybe (Maybe(..), isJust, isNothing) | ||
import Data.String (trim) | ||
|
||
readyWhen :: String | ||
readyWhen = "form" | ||
|
||
actions :: Actions | ||
actions = [ | ||
focus "input[type=text]" | ||
`followedBy` enterText "Hello" | ||
`followedBy` specialKeyPress KeyEnter | ||
`followedBy` await "button" `followedBy` click "button" | ||
] | ||
|
||
proposition :: Boolean | ||
proposition = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.