[FEATURE] Add tests for local sonar
* In order to show some interaction in browser, test login with sonar.
This commit is contained in:
parent
283e6cac4d
commit
dc960eb556
2 changed files with 32 additions and 0 deletions
|
@ -0,0 +1,12 @@
|
||||||
|
Feature: Sonarqube server is available
|
||||||
|
To reduce technical debts
|
||||||
|
Developers
|
||||||
|
Should be able to inspect there debts
|
||||||
|
|
||||||
|
Scenario: Website is delivered
|
||||||
|
Given I am on "http://localhost:9898/"
|
||||||
|
Then the response status code should be 200
|
||||||
|
|
||||||
|
Scenario: Website delivers Projects
|
||||||
|
Given I am on "http://localhost:9898"
|
||||||
|
Then I should see "T3-EXTENSIONS news"
|
|
@ -0,0 +1,20 @@
|
||||||
|
Feature: Sonarqube provides a login
|
||||||
|
To enable further features
|
||||||
|
A user
|
||||||
|
Should be able to login
|
||||||
|
|
||||||
|
Scenario: Authentication failed
|
||||||
|
Given I am on "http://localhost:9898/"
|
||||||
|
Then I follow "Log in"
|
||||||
|
And I fill in "login" with "test"
|
||||||
|
And I fill in "password" with "test"
|
||||||
|
And I press "Log in"
|
||||||
|
Then I should see "Authentication failed."
|
||||||
|
|
||||||
|
Scenario: Authentication successfully
|
||||||
|
Given I am on "http://localhost:9898/"
|
||||||
|
Then I follow "Log in"
|
||||||
|
And I fill in "login" with "admin"
|
||||||
|
And I fill in "password" with "admin"
|
||||||
|
And I press "Log in"
|
||||||
|
Then I should see "Administrator"
|
Loading…
Reference in a new issue