ghostrun-cli 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,30 @@
1
+ {
2
+ "version": "1.0.0",
3
+ "template": true,
4
+ "name": "Password Reset",
5
+ "description": "Request a password reset and assert confirmation email message",
6
+ "tags": ["auth", "reset", "email"],
7
+ "variables": ["BASE_URL", "EMAIL"],
8
+ "flow": {
9
+ "name": "Password Reset",
10
+ "description": "Request password reset and verify confirmation shown",
11
+ "appUrl": "{{BASE_URL}}",
12
+ "graph": {
13
+ "nodes": [
14
+ { "id": "start", "type": "start", "label": "Start", "url": "{{BASE_URL}}" },
15
+ { "id": "step-1", "type": "action", "label": "Navigate to forgot password page", "action": "navigate", "url": "{{BASE_URL}}/forgot-password" },
16
+ { "id": "step-2", "type": "action", "label": "Fill email", "action": "fill", "selector": "input[type='email'], input[name='email'], #email", "value": "{{EMAIL}}" },
17
+ { "id": "step-3", "type": "action", "label": "Submit reset request", "action": "click", "selector": "button[type='submit'], input[type='submit'], .reset-btn" },
18
+ { "id": "step-4", "type": "action", "label": "Assert confirmation message", "action": "assert:text", "value": "email" },
19
+ { "id": "end", "type": "end", "label": "End" }
20
+ ],
21
+ "edges": [
22
+ { "id": "e0", "source": "start", "target": "step-1" },
23
+ { "id": "e1", "source": "step-1", "target": "step-2" },
24
+ { "id": "e2", "source": "step-2", "target": "step-3" },
25
+ { "id": "e3", "source": "step-3", "target": "step-4" },
26
+ { "id": "e4", "source": "step-4", "target": "end" }
27
+ ]
28
+ }
29
+ }
30
+ }
@@ -0,0 +1,30 @@
1
+ {
2
+ "version": "1.0.0",
3
+ "template": true,
4
+ "name": "Search Results",
5
+ "description": "Type a search query and assert results appear",
6
+ "tags": ["search", "smoke", "navigation"],
7
+ "variables": ["BASE_URL", "SEARCH_QUERY"],
8
+ "flow": {
9
+ "name": "Search Results",
10
+ "description": "Search flow — verify results page loads",
11
+ "appUrl": "{{BASE_URL}}",
12
+ "graph": {
13
+ "nodes": [
14
+ { "id": "start", "type": "start", "label": "Start", "url": "{{BASE_URL}}" },
15
+ { "id": "step-1", "type": "action", "label": "Navigate to homepage", "action": "navigate", "url": "{{BASE_URL}}" },
16
+ { "id": "step-2", "type": "action", "label": "Fill search box", "action": "fill", "selector": "input[type='search'], input[name='q'], input[name='search'], .search-input, #search", "value": "{{SEARCH_QUERY}}" },
17
+ { "id": "step-3", "type": "action", "label": "Submit search", "action": "click", "selector": "button[type='submit'], .search-btn, button[aria-label*='search' i]" },
18
+ { "id": "step-4", "type": "action", "label": "Assert results page", "action": "assert:text", "value": "{{SEARCH_QUERY}}" },
19
+ { "id": "end", "type": "end", "label": "End" }
20
+ ],
21
+ "edges": [
22
+ { "id": "e0", "source": "start", "target": "step-1" },
23
+ { "id": "e1", "source": "step-1", "target": "step-2" },
24
+ { "id": "e2", "source": "step-2", "target": "step-3" },
25
+ { "id": "e3", "source": "step-3", "target": "step-4" },
26
+ { "id": "e4", "source": "step-4", "target": "end" }
27
+ ]
28
+ }
29
+ }
30
+ }
@@ -0,0 +1,34 @@
1
+ {
2
+ "version": "1.0.0",
3
+ "template": true,
4
+ "name": "Signup Verify",
5
+ "description": "Register a new account, assert confirmation message appears",
6
+ "tags": ["auth", "signup", "registration"],
7
+ "variables": ["BASE_URL", "EMAIL", "PASSWORD", "NAME"],
8
+ "flow": {
9
+ "name": "Signup Verify",
10
+ "description": "Register account and verify confirmation",
11
+ "appUrl": "{{BASE_URL}}",
12
+ "graph": {
13
+ "nodes": [
14
+ { "id": "start", "type": "start", "label": "Start", "url": "{{BASE_URL}}" },
15
+ { "id": "step-1", "type": "action", "label": "Navigate to signup page", "action": "navigate", "url": "{{BASE_URL}}/signup" },
16
+ { "id": "step-2", "type": "action", "label": "Fill name", "action": "fill", "selector": "input[name='name'], input[placeholder*='name' i], #name", "value": "{{NAME}}" },
17
+ { "id": "step-3", "type": "action", "label": "Fill email", "action": "fill", "selector": "input[type='email'], input[name='email'], #email", "value": "{{EMAIL}}" },
18
+ { "id": "step-4", "type": "action", "label": "Fill password", "action": "fill", "selector": "input[type='password'], input[name='password'], #password", "value": "{{PASSWORD}}" },
19
+ { "id": "step-5", "type": "action", "label": "Submit signup form", "action": "click", "selector": "button[type='submit'], .signup-btn, #signup-btn" },
20
+ { "id": "step-6", "type": "action", "label": "Assert confirmation shown", "action": "assert:text", "value": "Welcome" },
21
+ { "id": "end", "type": "end", "label": "End" }
22
+ ],
23
+ "edges": [
24
+ { "id": "e0", "source": "start", "target": "step-1" },
25
+ { "id": "e1", "source": "step-1", "target": "step-2" },
26
+ { "id": "e2", "source": "step-2", "target": "step-3" },
27
+ { "id": "e3", "source": "step-3", "target": "step-4" },
28
+ { "id": "e4", "source": "step-4", "target": "step-5" },
29
+ { "id": "e5", "source": "step-5", "target": "step-6" },
30
+ { "id": "e6", "source": "step-6", "target": "end" }
31
+ ]
32
+ }
33
+ }
34
+ }
@@ -0,0 +1,28 @@
1
+ {
2
+ "version": "1.0.0",
3
+ "template": true,
4
+ "name": "Smoke Homepage",
5
+ "description": "Quick smoke test — navigate to homepage and assert key text is visible",
6
+ "tags": ["smoke", "homepage", "ci"],
7
+ "variables": ["BASE_URL", "EXPECTED_TITLE"],
8
+ "flow": {
9
+ "name": "Smoke Homepage",
10
+ "description": "Verify homepage loads and shows expected title text",
11
+ "appUrl": "{{BASE_URL}}",
12
+ "graph": {
13
+ "nodes": [
14
+ { "id": "start", "type": "start", "label": "Start", "url": "{{BASE_URL}}" },
15
+ { "id": "step-1", "type": "action", "label": "Navigate to homepage", "action": "navigate", "url": "{{BASE_URL}}" },
16
+ { "id": "step-2", "type": "action", "label": "Assert page title visible", "action": "assert:title", "value": "{{EXPECTED_TITLE}}" },
17
+ { "id": "step-3", "type": "action", "label": "Assert no 404 text", "action": "assert:text", "value": "{{EXPECTED_TITLE}}" },
18
+ { "id": "end", "type": "end", "label": "End" }
19
+ ],
20
+ "edges": [
21
+ { "id": "e0", "source": "start", "target": "step-1" },
22
+ { "id": "e1", "source": "step-1", "target": "step-2" },
23
+ { "id": "e2", "source": "step-2", "target": "step-3" },
24
+ { "id": "e3", "source": "step-3", "target": "end" }
25
+ ]
26
+ }
27
+ }
28
+ }