chore: germantax customer project
This commit is contained in:
24
e2e/tests/features/auth.feature
Normal file
24
e2e/tests/features/auth.feature
Normal file
@@ -0,0 +1,24 @@
|
||||
Feature: Authentication
|
||||
|
||||
Scenario: Redirect unauthenticated user to login
|
||||
Given I visit "/companies"
|
||||
Then the URL contains "/login"
|
||||
|
||||
Scenario: Successful login redirects to companies
|
||||
Given I visit "/login"
|
||||
When I fill "input[type='email']" with "founder@example.com"
|
||||
And I fill "input[type='password']" with "test1234"
|
||||
And I click "Sign in"
|
||||
Then the URL contains "/companies"
|
||||
|
||||
Scenario: Wrong password shows an error
|
||||
Given I visit "/login"
|
||||
When I fill "input[type='email']" with "founder@example.com"
|
||||
And I fill "input[type='password']" with "wrongpassword"
|
||||
And I click "Sign in"
|
||||
Then I see "Email or password is incorrect"
|
||||
|
||||
Scenario: Logged-in user can log out
|
||||
Given I am logged in as "founder@example.com" with password "test1234"
|
||||
When I log out
|
||||
Then I see "Signed out"
|
||||
20
e2e/tests/features/companies.feature
Normal file
20
e2e/tests/features/companies.feature
Normal file
@@ -0,0 +1,20 @@
|
||||
Feature: Companies
|
||||
|
||||
Background:
|
||||
Given I am logged in as "founder@example.com" with password "test1234"
|
||||
|
||||
Scenario: Companies page loads with seed data
|
||||
Given I visit "/companies"
|
||||
Then I see "Your companies"
|
||||
And I see "Beispiel GmbH"
|
||||
|
||||
Scenario: Navigate to a company detail page
|
||||
Given I visit "/companies"
|
||||
When I click "Beispiel GmbH"
|
||||
Then the URL contains "/companies/"
|
||||
And I see "Beispiel GmbH"
|
||||
|
||||
Scenario: Company detail shows resolutions section
|
||||
Given I visit "/companies"
|
||||
When I click "Beispiel GmbH"
|
||||
Then I see "Resolutions"
|
||||
20
e2e/tests/features/resolutions.feature
Normal file
20
e2e/tests/features/resolutions.feature
Normal file
@@ -0,0 +1,20 @@
|
||||
Feature: Resolutions
|
||||
|
||||
Background:
|
||||
Given I am logged in as "founder@example.com" with password "test1234"
|
||||
|
||||
Scenario: Open new resolution modal from company page
|
||||
Given I visit "/companies"
|
||||
When I click "Beispiel GmbH"
|
||||
And I click "New resolution"
|
||||
Then I see "Select template"
|
||||
|
||||
Scenario: Create a new resolution and land on its detail page
|
||||
Given I visit "/companies"
|
||||
When I click "Beispiel GmbH"
|
||||
And I click "New resolution"
|
||||
And I select "Annual budget approval" from "Select template"
|
||||
And I fill "Title" with "Budget Review 2025"
|
||||
And I click "Create draft"
|
||||
Then the URL contains "/resolutions/"
|
||||
And I see "Budget Review 2025"
|
||||
Reference in New Issue
Block a user