Skip to content

Commit

Permalink
PLT-5884 added cucumber support and step definition files
Browse files Browse the repository at this point in the history
  • Loading branch information
ladamesny committed May 30, 2023
1 parent 73c6a0d commit f54dc96
Show file tree
Hide file tree
Showing 29 changed files with 6,670 additions and 163 deletions.
3 changes: 3 additions & 0 deletions e2e/config/hosts.json
@@ -0,0 +1,3 @@
{
"localhost": "http://0.0.0.0:8009/"
}
3 changes: 3 additions & 0 deletions e2e/config/mappings/page-elements/common.json
@@ -0,0 +1,3 @@
{
"header logo": {"role": "heading", "name": "header-logo" }
}
10 changes: 10 additions & 0 deletions e2e/config/mappings/page-elements/home.json
@@ -0,0 +1,10 @@
{
"Start in Javascript": { "role": "link", "name": "Start in Javascript" },
"Start in Haskell": { "role": "link", "name": "Start in Haskell" },
"Start in Marlowe": { "role": "link", "name": "Start in Marlowe" },
"Start in Blockly": { "role": "link", "name": "Start in Blockly" },
"Open existing project": { "role": "button", "name": "Open existing project" },
"Open an example": { "role": "button", "name": "Open an example" },
"Login with github": { "role": "header", "name": "Login with github" },
"Escrow Javascript": { "role": "button", "name": "Escrow Javascript" }
}
6 changes: 6 additions & 0 deletions e2e/config/mappings/page-elements/playground.json
@@ -0,0 +1,6 @@
{
"editor header": { "role": "heading", "name": "project-title"},
"playground editor": { "role": "heading", "name": "javascript-editor"},
"Compile": { "role": "button", "name": "Compile"},
"Send To Simulator": { "role": "button", "name": "Send to Simulator"}
}
12 changes: 12 additions & 0 deletions e2e/config/pages.json
@@ -0,0 +1,12 @@
{
"marlowe playground": {
"home": {
"route": "/",
"regex": "^/#/$"
},
"marlowe-playground-js": {
"route": "/#/javascript",
"regex": "^/#/javascript$"
}
}
}
1 change: 1 addition & 0 deletions e2e/cucumber.js
@@ -0,0 +1 @@
module.exports = require("./dist");
15 changes: 15 additions & 0 deletions e2e/env/common.env
@@ -0,0 +1,15 @@
UI_AUTOMATION_BROWSER='chromium'
UI_AUTOMATION_HOST=current-sprint
HEADLESS=true
SCREENSHOT_PATH="./reports/screenshots/"
VIDEO_PATH="./reports/videos/"
JSON_REPORT_FILE="./reports/reports.json"
HOSTS_URLS_PATH="/config/hosts.json"
PAGE_URLS_PATH="/config/pages.json"
HTML_REPORT_FILE="./reports/cucumber-html-report.html"
PAGE_ELEMENTS_PATH="/config/mappings/page-elements/"
PLAYGROUND_PAGE_ELEMENTS_PATH="/config/mappings/page-elements/marlowe-playground/"
RUN_PAGE_ELEMENTS_PATH="/config/mappings/page-elements/marlowe-run/"
FIXTURES_PATH="/config/mappings/fixtures/"
SCRIPT_TIMEOUT=40000
DEVTOOLS=false

0 comments on commit f54dc96

Please sign in to comment.