Skip to content

Commit

Permalink
[v2.6] Cypress - ignore skip empty login form in interop (kiali#8209)
Browse files Browse the repository at this point in the history
* removing negative testcase
  • Loading branch information
ScriptingShrimp committed Mar 7, 2025
1 parent 0288ebd commit 511c715
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 14 deletions.
10 changes: 1 addition & 9 deletions frontend/cypress/integration/common/kiali_login.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,7 @@ Given('user fill in username and password', () => {
}
});

Given('user does not fill in username and password', () => {
if (auth_strategy === 'openshift') {
cy.log('Log in with empty credentials');
cy.get('#inputUsername').clear();
cy.get('button[type="submit"]').click();
}
});

Given('user fills in an invalid username', () => {
When('user fills in an invalid username', () => {
if (auth_strategy === 'openshift') {
let invalid = 'foobar';

Expand Down
7 changes: 2 additions & 5 deletions frontend/cypress/integration/featureFiles/kiali_login.feature
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,9 @@ Feature: Kiali login

User wants to login to Kiali and see landing page

Scenario: Try to log in without filling the username and password
Given all sessions are cleared
And user opens base url
Background:
Given user opens base url
And user clicks my_htpasswd_provider
And user does not fill in username and password
Then user sees the "Login is required. Please try again." phrase displayed

Scenario: Try to log in with an invalid username
Given all sessions are cleared
Expand Down

0 comments on commit 511c715

Please sign in to comment.