-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
14 additions
and
3 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
...de-Tests-Parasol.package/WAWebDriverFunctionalTestCase.class/instance/expectedFailures.st
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
running | ||
expectedFailures | ||
| todo | | ||
todo := #(testExpiryFunctionalTest testFilterFunctionalTest testUploadFunctionalTest). | ||
todo := #(testExpiryFunctionalTest testFilterFunctionalTest). | ||
^ (GRPlatform current class == (Smalltalk at: #GRGemStonePlatform ifAbsent:[ nil ])) | ||
ifTrue: [ #(testContextFunctionalTest), todo "requires https://github.com/GsDevKit/Grease/pull/17 to be merged" ] | ||
ifFalse:[ todo ] |
15 changes: 13 additions & 2 deletions
15
...-Parasol.package/WAWebDriverFunctionalTestCase.class/instance/testUploadFunctionalTest.st
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 |
---|---|---|
@@ -1,5 +1,16 @@ | ||
testing | ||
testUploadFunctionalTest | ||
|
||
| file | | ||
self selectTest: 'WAUploadFunctionalTest'. | ||
|
||
self fail. | ||
|
||
file := GRPlatform current newTemporaryFileReferenceNamed: 'testfile.txt'. | ||
GRPlatform current | ||
writeFileStreamOn: file pathString | ||
do: [ :stream | stream nextPutAll: 'blabla' ] | ||
binary: false. | ||
|
||
(driver findElementByCSSSelector: 'input[type=file]') sendKeys: file pathString. | ||
(driver findElementByCSSSelector: 'input[value=Load]') click. | ||
|
||
self assert: (driver findElementByCSSSelector: 'pre') getText equals: 'blabla' |