chore: perauset customer project
This commit is contained in:
14
e2e/tests/features/browser/finance.feature
Normal file
14
e2e/tests/features/browser/finance.feature
Normal file
@@ -0,0 +1,14 @@
|
||||
Feature: Finance UI
|
||||
|
||||
Background:
|
||||
Given I am logged in as "admin@perauset.org"
|
||||
|
||||
Scenario: Create finance record
|
||||
When I navigate to "/finance"
|
||||
And I click "Add Record"
|
||||
And I fill in "Name" with "Kitchen Supplies"
|
||||
And I fill in "Amount" with "150"
|
||||
And I select "Expense" from "Type"
|
||||
And I select "Kitchen" from "Category"
|
||||
And I click "Create Record"
|
||||
Then I should see "Kitchen Supplies"
|
||||
16
e2e/tests/features/browser/inventory.feature
Normal file
16
e2e/tests/features/browser/inventory.feature
Normal file
@@ -0,0 +1,16 @@
|
||||
Feature: Inventory Management UI
|
||||
|
||||
Background:
|
||||
Given I am logged in as "admin@perauset.org"
|
||||
|
||||
Scenario: Add inventory item
|
||||
When I navigate to "/inventory"
|
||||
Then I should see heading "Inventory"
|
||||
And I click "Add Item"
|
||||
And I fill in "Item Name" with "Olive Oil"
|
||||
And I fill in "Unit" with "liter"
|
||||
And I fill in "Current Quantity" with "20"
|
||||
And I fill in "Minimum Quantity" with "5"
|
||||
And I select "Kitchen" from "Category"
|
||||
And I click "Create Item"
|
||||
Then I should see "Olive Oil"
|
||||
15
e2e/tests/features/browser/login.feature
Normal file
15
e2e/tests/features/browser/login.feature
Normal file
@@ -0,0 +1,15 @@
|
||||
Feature: Login
|
||||
|
||||
Scenario: Login with valid credentials
|
||||
Given I am on the login page
|
||||
Then I should see "PerAuset"
|
||||
And I should see "Sign in to your account"
|
||||
When I fill in "Email" with "admin@perauset.org"
|
||||
And I fill in "Password" with "test"
|
||||
And I click "Sign in"
|
||||
Then I should see heading "Dashboard"
|
||||
And the sidebar should show "Dashboard"
|
||||
|
||||
Scenario: Login page pre-fills demo credentials
|
||||
Given I am on the login page
|
||||
Then the "Email" field should contain "admin@perauset.org"
|
||||
63
e2e/tests/features/browser/navigation.feature
Normal file
63
e2e/tests/features/browser/navigation.feature
Normal file
@@ -0,0 +1,63 @@
|
||||
Feature: Navigation
|
||||
|
||||
Background:
|
||||
Given I am logged in as "admin@perauset.org"
|
||||
|
||||
Scenario: Dashboard loads
|
||||
Then I should see heading "Dashboard"
|
||||
And I should see "Stays"
|
||||
|
||||
Scenario: Navigate to Boats
|
||||
When I click "Boats" in the sidebar
|
||||
Then I should see heading "Boat Trips"
|
||||
|
||||
Scenario: Navigate to Kitchen
|
||||
When I click "Kitchen" in the sidebar
|
||||
Then I should see heading "Kitchen"
|
||||
|
||||
Scenario: Navigate to Inventory
|
||||
When I click "Inventory" in the sidebar
|
||||
Then I should see heading "Inventory"
|
||||
|
||||
Scenario: Navigate to Finance
|
||||
When I click "Finance" in the sidebar
|
||||
Then I should see heading "Finance"
|
||||
|
||||
Scenario: Navigate to Retreats
|
||||
When I click "Retreats" in the sidebar
|
||||
Then I should see heading "Retreats"
|
||||
|
||||
Scenario: Navigate to Rooms
|
||||
When I click "Rooms" in the sidebar
|
||||
Then I should see heading "Rooms"
|
||||
|
||||
Scenario: Navigate to Boat Management
|
||||
When I click "Boat Management" in the sidebar
|
||||
Then I should see heading "Fleet Management"
|
||||
|
||||
Scenario: Navigate to Users
|
||||
When I click "Users" in the sidebar
|
||||
Then I should see heading "Users & Roles"
|
||||
|
||||
Scenario: Navigate to Audit Log
|
||||
When I click "Audit Log" in the sidebar
|
||||
Then I should see heading "Audit Log"
|
||||
|
||||
Scenario: Navigate to My Stays
|
||||
When I click "My Stays" in the sidebar
|
||||
Then I should see heading "My Stays"
|
||||
|
||||
Scenario: Navigate to My Profile
|
||||
When I click "My Profile" in the sidebar
|
||||
Then I should see heading "My Profile"
|
||||
|
||||
# The Operations "Stays" and "Tasks" sidebar links share their labels with the
|
||||
# personal "My Stays"/"My Tasks" links (i18n: nav.stays == nav.my_stays), so
|
||||
# they are exercised via direct URL navigation instead of the ambiguous sidebar.
|
||||
Scenario: Open the Stays operations page
|
||||
When I navigate to "/stays"
|
||||
Then I should see heading "Stays"
|
||||
|
||||
Scenario: Open the Tasks operations page
|
||||
When I navigate to "/tasks"
|
||||
Then I should see heading "Tasks"
|
||||
15
e2e/tests/features/browser/rooms.feature
Normal file
15
e2e/tests/features/browser/rooms.feature
Normal file
@@ -0,0 +1,15 @@
|
||||
Feature: Room Management UI
|
||||
|
||||
Background:
|
||||
Given I am logged in as "admin@perauset.org"
|
||||
|
||||
Scenario: Create a room
|
||||
When I navigate to "/rooms"
|
||||
Then I should see heading "Rooms"
|
||||
And I click "Create Room"
|
||||
And I fill in "Room Code" with "R-101"
|
||||
And I fill in "Room Name" with "Sunrise Room"
|
||||
And I select "Private" from "Room Type"
|
||||
And I fill in "Capacity" with "2"
|
||||
And I click "Save Room"
|
||||
Then I should see "Sunrise Room"
|
||||
15
e2e/tests/features/browser/stays.feature
Normal file
15
e2e/tests/features/browser/stays.feature
Normal file
@@ -0,0 +1,15 @@
|
||||
Feature: Stay Management UI
|
||||
|
||||
Background:
|
||||
Given I am logged in as "admin@perauset.org"
|
||||
|
||||
Scenario: Stay request drawer opens
|
||||
When I navigate to "/stays"
|
||||
Then I should see heading "Stays"
|
||||
When I click "Request a Stay"
|
||||
Then I should see "Request Type"
|
||||
|
||||
Scenario: View stay requests tab
|
||||
When I navigate to "/stays"
|
||||
And I click tab "Requests"
|
||||
Then I should see "No stay requests found."
|
||||
Reference in New Issue
Block a user