Skip to content

Commit 24302c1

Browse files
committed
added two scenarios for the two features
1 parent 5055c9b commit 24302c1

1 file changed

Lines changed: 30 additions & 1 deletion

File tree

scenarios/main_scenario.yml

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,33 @@
2727
element: "header h1"
2828
pageChange: true
2929
# Wait again for dashboard fully loaded
30-
waitForSelector: "main.container .grid"
30+
waitForSelector: "main.container .grid"
31+
32+
- name: Test manual income addition
33+
type: click
34+
# Go to incomes page again to test AddMoney feature
35+
element: "article:nth-of-type(2) header a[href='/incomes']"
36+
pageChange: true
37+
waitForSelector: "[data-testid='incomes-loaded']"
38+
39+
- name: Open add income dialog
40+
type: click
41+
# Click the button to open AddMoney dialog
42+
element: "button[aria-label='Add income'], button:has-text('Add')"
43+
# Wait for dialog to appear (assuming it has a form or dialog element)
44+
waitForSelector: "dialog[open], [role='dialog']"
45+
46+
- name: Go to outcomes page
47+
type: click
48+
# Return to dashboard first
49+
element: "header h1"
50+
pageChange: true
51+
waitForSelector: "main.container .grid"
52+
53+
- name: View outcomes and potential savings
54+
type: click
55+
# Click on outcomes "View all" link
56+
element: "article:nth-of-type(1) header a[href='/outcomes']"
57+
pageChange: true
58+
# Wait for PotentialEconomy component to load
59+
waitForSelector: "article h3:has-text('Potential Savings')"

0 commit comments

Comments
 (0)