Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Feature: Browser-based CAS login and logout functionality
Given the user is logged out of the CES
When the user opens the dogu start page
And the test user logs in with correct credentials
And the user waits until the page is fully loaded
Then the user is logged in to the dogu

@requires_testuser
Expand All @@ -25,11 +26,13 @@ Feature: Browser-based CAS login and logout functionality
Scenario: logged in user can log out via logout button (front-channel)
Given the user is logged into the CES
When the user opens the dogu start page
And the user waits until the page is fully loaded
And the user clicks the dogu logout button
Then the user is logged out of the dogu

@requires_testuser
Scenario: logged in user can log out via cas logout page (back-channel)
Given the user is logged into the CES
When the user logs out by visiting the cas logout page
When the user waits until the page is fully loaded
And the user logs out by visiting the cas logout page
Then the user is logged out of the dogu
Original file line number Diff line number Diff line change
Expand Up @@ -5,30 +5,35 @@ Feature: Automatic grant of privileges when logging into a dogu
Scenario: ces user with default privileges has default privileges in the dogu
Given the user is not member of the admin user group
When the user logs into the CES
And the user waits until the page is fully loaded
Then the user has no administrator privileges in the dogu

@requires_testuser
Scenario: ces user with admin privileges has admin privileges in the dogu
Given the user is member of the admin user group
When the user logs into the CES
And the user waits until the page is fully loaded
Then the user has administrator privileges in the dogu

@requires_testuser
Scenario: ces user without admin privileges has no admin privileges in the dogu
Given the user is not member of the admin user group
When the user logs into the CES
And the user waits until the page is fully loaded
Then the user has no administrator privileges in the dogu

@requires_testuser
Scenario: internal dogu admin account is demoted after login of non admin
Given the user has an internal default dogu account
And the user is not member of the admin user group
When the user logs into the CES
And the user waits until the page is fully loaded
Then the user has no administrator privileges in the dogu

@requires_testuser
Scenario: internal dogu default account is promoted after login of admin
Given the user has an internal default dogu account
And the user is member of the admin user group
When the user logs into the CES
And the user waits until the page is fully loaded
Then the user has administrator privileges in the dogu
1 change: 1 addition & 0 deletions integrationTests/cypress/e2e/scm_browser.feature
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ Feature: SCM Browser
Scenario: ces admin user can access index
Given the user is member of the admin user group
When the user logs into the CES
And the user waits until the page is fully loaded
Then the user can access the index
2 changes: 1 addition & 1 deletion integrationTests/cypress/support/e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ doguTestLibrary.registerCommands()

// local commands
import './commands/scm_api'
import './commands/scm_ui'
import './commands/scm_ui'
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ When("the user clicks the dogu logout button", () => {
cy.get('h2[class=banner-heading]').should('be.visible');
});

When("the user waits until the page is fully loaded", () => {
cy.get('img[src="/scm/images/loading.svg"]').should('not.exist')
});

Then("the user has administrator privileges in the dogu", () => {
Cypress.on('uncaught:exception', () => {
return false;
Expand Down