-
Notifications
You must be signed in to change notification settings - Fork 1
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
34 changed files
with
1,186 additions
and
84 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,3 +8,4 @@ dist/ | |
lib/ | ||
node_modules/ | ||
src/urljsf/_static | ||
tests/fixtures/mkdocs/*/site |
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,9 +1,11 @@ | ||
# Changelog | ||
|
||
## 0.1.1 | ||
> ## 0.1.1 (Unreleased) | ||
> | ||
> - [#12] adds an `mkdocs` plugin, available with `urljsf[mkdocs]` | ||
> | ||
> [#12]: https://github.com/deathbeds/urljsf/pull/12 | ||
> TBD | ||
## 0.1.0 | ||
## [0.1.0](https://github.com/deathbeds/urljsf/releases/tag/v0.1.0) | ||
|
||
- initial release |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
*** Settings *** | ||
Documentation XKCD demo keywords | ||
Resource ../resources/urljsf.resource | ||
Library SeleniumLibrary | ||
|
||
|
||
*** Variables *** | ||
${SLIDER_ID} urljsf-0-url_xkcd | ||
|
||
|
||
*** Keywords *** | ||
Exercise XKCD Demo | ||
[Documentation] Run through the basic steps of the XKCD demo | ||
Wait Until Element Is Visible css:${CSS_U_FORM} | ||
Capture Element Screenshot css:${CSS_U_FORM} 00-open.png | ||
${n} = Verify XKCD Value Changes | ||
Capture Element Screenshot css:${CSS_U_FORM} 01-changed.png | ||
Verify XKCD URL ${n} | ||
|
||
Verify XKCD Value Changes | ||
[Documentation] Verify the slider changes. | ||
${old} = Get XKCD Number | ||
Change XKCD | ||
${new} = Get XKCD Number | ||
Should Not Be Equal ${old} ${new} | ||
RETURN ${new} | ||
|
||
Change XKCD | ||
[Documentation] Change a slider value | ||
Click Element css:#${SLIDER_ID} | ||
Click Element At Coordinates css:#${SLIDER_ID} -100 0 | ||
|
||
Get XKCD Number | ||
[Documentation] Get a slider value. | ||
${xkcd} = Get Element Attribute css:#${SLIDER_ID} value | ||
RETURN ${xkcd} | ||
|
||
Get XKCD URL | ||
[Documentation] Get the submit value. | ||
${url} = Get Element Attribute css:${CSS_U_SUBMIT} href | ||
RETURN ${url} | ||
|
||
Verify XKCD URL | ||
[Documentation] Verify the URL against an expected value. | ||
[Arguments] ${n} | ||
${expect} = Set Variable https://xkcd.com/${n} | ||
${url} = Get Element Attribute css:${CSS_U_SUBMIT} href | ||
Capture Element Screenshot css:${CSS_U_FORM} 02-slid.png | ||
Should Be Equal As Strings ${url} ${expect} |
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,53 +1,17 @@ | ||
*** Settings *** | ||
Documentation Verify the webpack-built demo | ||
Resource ../resources/urljsf.resource | ||
Library SeleniumLibrary | ||
Resource ../resources/xkcd.resource | ||
|
||
Suite Setup Setup Urljsf Suite 00_jsdemo.robot | ||
Test Setup Open Page _static/urljsf/demo/index.html | ||
Test Teardown Open Blank | ||
|
||
|
||
*** Variables *** | ||
${SLIDER_ID} urljsf-0-url_xkcd | ||
Test Tags app:script | ||
|
||
|
||
*** Test Cases *** | ||
JS Demo Opens | ||
[Documentation] Verify the JS demo opens. | ||
Wait Until Element Is Visible css:${CSS_U_FORM} | ||
Capture Element Screenshot css:${CSS_U_FORM} 00-open.png | ||
${n} = Verify XKCD Value Changes | ||
Capture Element Screenshot css:${CSS_U_FORM} 01-changed.png | ||
Verify XKCD URL ${n} | ||
|
||
|
||
*** Keywords *** | ||
Verify XKCD Value Changes | ||
[Documentation] Verify the slider changes. | ||
${old} = Get XKCD Number | ||
Change XKCD | ||
${new} = Get XKCD Number | ||
Should Not Be Equal ${old} ${new} | ||
RETURN ${new} | ||
|
||
Change XKCD | ||
[Documentation] Change a slider value | ||
Press Keys css:#${SLIDER_ID} RIGHT RIGHT | ||
|
||
Get XKCD Number | ||
[Documentation] Get a slider value. | ||
${xkcd} = Get Element Attribute css:#${SLIDER_ID} value | ||
RETURN ${xkcd} | ||
|
||
Get XKCD URL | ||
[Documentation] Get the submit value. | ||
${url} = Get Element Attribute css:${CSS_U_SUBMIT} href | ||
RETURN ${url} | ||
|
||
Verify XKCD URL | ||
[Documentation] Verify the URL against an expected value. | ||
[Arguments] ${n} | ||
${url} = Get Element Attribute css:${CSS_U_SUBMIT} href | ||
Should Be Equal As Strings ${url} https://xkcd.com/${n} | ||
JS XKCD Demo Works | ||
[Documentation] Verify the JS demo as built by webpack opens. | ||
[Tags] demo:xkcd | ||
Exercise XKCD Demo |
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,16 +1,16 @@ | ||
*** Settings *** | ||
Documentation Verify the `xkcd` demo. | ||
Resource ../../resources/urljsf.resource | ||
Library SeleniumLibrary | ||
Resource ../../resources/xkcd.resource | ||
|
||
Suite Setup Setup Urljsf Suite 01_docs/000_xkcd | ||
Test Setup Open Demo xkcd | ||
Test Setup Open Sphinx Demo xkcd | ||
Test Teardown Open Blank | ||
|
||
Test Tags demo:xkcd | ||
|
||
|
||
*** Test Cases *** | ||
Xkcd Demo Opens | ||
[Documentation] Verify the docs `xkcd` opens. | ||
Wait Until Element Is Visible css:${CSS_U_FORM} | ||
Capture Element Screenshot css:${CSS_U_FORM} 00-open.png | ||
Exercise XKCD Demo |
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.