Skip to content

Commit

Permalink
Merge pull request #7950 from makambalaji/odc-5403-project-creation-f…
Browse files Browse the repository at this point in the history
…eature-fix

Bug 1918757: added document ready state to fix this page loading issue
  • Loading branch information
openshift-merge-robot committed Jan 29, 2021
2 parents d8cdd5d + 5b69b1d commit a8d913c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ declare global {
before(() => {
cy.login();
cy.visit('');
cy.document()
.its('readyState')
.should('eq', 'complete');
});

after(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,15 @@ export const naviagteTo = (opt: devNavigationMenu) => {

export const projectNameSpace = {
selectCreateProjectOption: () => {
cy.byLegacyTestID('namespace-bar-dropdown')
.find('button')
.eq(0)
.click();
cy.byTestDropDownMenu('#CREATE_RESOURCE_ACTION#').click();
cy.document().then((doc) => {
if (doc.readyState === 'complete') {
cy.byLegacyTestID('namespace-bar-dropdown')
.find('button')
.eq(0)
.click();
cy.byTestDropDownMenu('#CREATE_RESOURCE_ACTION#').click();
}
});
},

enterProjectName: (projectName: string) => {
Expand Down

0 comments on commit a8d913c

Please sign in to comment.