Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add test for testing download button. (comment out logs for determine…
…-os.js)
- Loading branch information
Showing
2 changed files
with
28 additions
and
2 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
26 changes: 26 additions & 0 deletions
26
test/com/yetu/oauth2provider/integration/IntegrationSetupSpec.scala
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,26 @@ | ||
package com.yetu.oauth2provider.integration | ||
|
||
import com.yetu.oauth2provider.base.BaseMethods | ||
import org.scalatestplus.play.{ OneServerPerSuite, OneBrowserPerSuite, HtmlUnitFactory, PlaySpec } | ||
import play.api.Logger | ||
|
||
/** | ||
* Created by elisahilprecht on 16/03/15. | ||
*/ | ||
class IntegrationSetupSpec extends PlaySpec with OneServerPerSuite with OneBrowserPerSuite with HtmlUnitFactory with BaseMethods { | ||
|
||
"Download page" must { | ||
"title must be 'Download'" in { | ||
go to (s"http://localhost:$port" + setupDownloadUrl) | ||
pageTitle mustBe "Download" | ||
Logger.info(pageSource) | ||
|
||
} | ||
"show new content when clicking on download" in { | ||
//TODO: why it is a windows user agent | ||
find(id("download_win1")) must be ('defined) | ||
click on find(id("download_win1")).value | ||
eventually { find(id("fullContainer")) must be ('defined) } | ||
} | ||
} | ||
} |