This repository has been archived by the owner on May 9, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
no need to have ()=> when you are using the logInToGUPage
- Loading branch information
1 parent
f50fda3
commit d8493a8
Showing
5 changed files
with
22 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,12 @@ | ||
web-automation-core-scala-api | ||
scala-automation-web-signin | ||
----------------------------- | ||
To use this just edit your build.sbt as follows: | ||
|
||
libraryDependencies ++= Seq( | ||
"com.gu" %% "web-automation-core-scala-api" % "1.0-SNAPSHOT" | ||
"com.gu" %% "scala-automation-web-signin" % "1.xxx" | ||
) | ||
|
||
AuthApi | ||
------- | ||
From your code, you can import com.gu.automation.api.AuthApi and then do something like | ||
Add something to your conf file e.g. for CODE | ||
"idApiRoot" : "https://idapi.code.dev-theguardian.com" | ||
|
||
val future = AuthApi.authenticate(email, password) | ||
See the example code in LoggingInTest |
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 @@ | ||
"idApiRoot" : "https://idapi.code.dev-theguardian.com" |
12 changes: 12 additions & 0 deletions
12
src/test/scala/com/gu/automation/signin/LoggingInTest.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,12 @@ | ||
package com.gu.automation.signin | ||
|
||
import com.gu.automation.support.LoggingIn | ||
import org.scalatest.FlatSpec | ||
|
||
class LoggingInTest extends FlatSpec with LoggingIn { | ||
|
||
"loggingIn" should "compile the example code" in { | ||
// logInToGUPage(ExamplePage.goto(), Some("user")) | ||
} | ||
|
||
} |