Skip to content

Commit 19aa52e

Browse files
committed
add cy.wait for login page
Issue: AAH-2172
1 parent 86f76c2 commit 19aa52e

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/containers/login/login.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class LoginPage extends React.Component<RouteProps, IState> {
2929
};
3030

3131
const params = ParamHelper.parseParamString(this.props.location.search);
32-
this.redirectPage = params['next'] || formatPath(Paths.collections);
32+
this.redirectPage = params['next'] || formatPath(Paths.landingPage);
3333
}
3434

3535
render() {

test/cypress/e2e/execution_environments/execution_environments_edit.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
1+
const apiPrefix = Cypress.env('apiPrefix');
2+
13
describe('execution environments', () => {
24
let num = (~~(Math.random() * 1000000)).toString();
5+
let loginUrl = `${apiPrefix}_ui/v1/auth/login/`;
36

47
before(() => {
8+
cy.intercept('GET', loginUrl).as('login');
59
cy.login();
6-
710
cy.deleteRegistriesManual();
811
cy.deleteContainersManual();
912

@@ -23,6 +26,7 @@ describe('execution environments', () => {
2326

2427
beforeEach(() => {
2528
cy.login();
29+
cy.wait('@login', { timeout: 10000 });
2630
cy.menuGo('Execution Environments > Execution Environments');
2731
});
2832

0 commit comments

Comments
 (0)