-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
β
: add navigation to module description page
- Loading branch information
Showing
3 changed files
with
41 additions
and
0 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
20 changes: 20 additions & 0 deletions
20
src/test/java/io/gaia_app/e2e/pages/ModuleDescriptionPage.kt
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,20 @@ | ||
package io.gaia_app.e2e.pages | ||
|
||
import org.openqa.selenium.WebDriver | ||
import org.openqa.selenium.WebElement | ||
import org.openqa.selenium.support.FindBy | ||
|
||
class ModuleDescriptionPage(webDriver: WebDriver) { | ||
|
||
init { | ||
if(! webDriver.currentUrl.contains("/description")){ | ||
throw IllegalStateException("This is not the module description page. Current page is ${webDriver.currentUrl}") | ||
} | ||
} | ||
|
||
@FindBy(className= "markdown-body") | ||
private lateinit var readmeContent: WebElement | ||
|
||
fun readmeText() : String = readmeContent.text | ||
|
||
} |
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