|
|
@ -33,7 +33,7 @@ export class _settingsPage { |
|
|
|
// cy.get('.nc-team-settings').should('exist').click()
|
|
|
|
// cy.get('.nc-team-settings').should('exist').click()
|
|
|
|
// cy.get(`[data-menu-id=${menuId}]`).should('exist').click()
|
|
|
|
// cy.get(`[data-menu-id=${menuId}]`).should('exist').click()
|
|
|
|
cy.get('.nc-project-menu').should('exist').click() |
|
|
|
cy.get('.nc-project-menu').should('exist').click() |
|
|
|
cy.getActiveMenu().find(`[data-menu-id="teamAndSettings"]`).should('exist').click() |
|
|
|
cy.getActiveMenu(".nc-dropdown-project-menu").find(`[data-menu-id="teamAndSettings"]`).should('exist').click() |
|
|
|
cy.get(`[data-menu-id=${menuId}]`).should('exist').click() |
|
|
|
cy.get(`[data-menu-id=${menuId}]`).should('exist').click() |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -89,7 +89,7 @@ export class _mainPage { |
|
|
|
navigationDraw(item) { |
|
|
|
navigationDraw(item) { |
|
|
|
// open settings tab
|
|
|
|
// open settings tab
|
|
|
|
cy.get('.nc-project-menu').should('exist').click() |
|
|
|
cy.get('.nc-project-menu').should('exist').click() |
|
|
|
cy.getActiveMenu().find(`[data-menu-id="teamAndSettings"]`).should('exist').click() |
|
|
|
cy.getActiveMenu(".nc-dropdown-project-menu").find(`[data-menu-id="teamAndSettings"]`).should('exist').click() |
|
|
|
|
|
|
|
|
|
|
|
switch (item) { |
|
|
|
switch (item) { |
|
|
|
case this.AUDIT: |
|
|
|
case this.AUDIT: |
|
|
@ -136,26 +136,26 @@ export class _mainPage { |
|
|
|
}); |
|
|
|
}); |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
addExistingUserToProject = (emailId, role) => { |
|
|
|
// addExistingUserToProject = (emailId, role) => {
|
|
|
|
cy.get('.v-list-item:contains("Team & Auth")').click(); |
|
|
|
// cy.get('.v-list-item:contains("Team & Auth")').click();
|
|
|
|
cy.get(`tr:contains(${emailId})`) |
|
|
|
// cy.get(`tr:contains(${emailId})`)
|
|
|
|
.find(".mdi-plus", { timeout: 2000 }) |
|
|
|
// .find(".mdi-plus", { timeout: 2000 })
|
|
|
|
.click(); |
|
|
|
// .click();
|
|
|
|
cy.get(`tr:contains(${emailId})`) |
|
|
|
// cy.get(`tr:contains(${emailId})`)
|
|
|
|
.find(".mdi-pencil-outline", { timeout: 2000 }) |
|
|
|
// .find(".mdi-pencil-outline", { timeout: 2000 })
|
|
|
|
.click(); |
|
|
|
// .click();
|
|
|
|
|
|
|
|
|
|
|
|
cy.get("label:contains(Select User Role)").click(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// opt-in requested role & submit
|
|
|
|
|
|
|
|
//
|
|
|
|
//
|
|
|
|
cy.getActiveMenu().contains(role).click(); |
|
|
|
// cy.get("label:contains(Select User Role)").click();
|
|
|
|
cy.get(".nc-invite-or-save-btn").click(); |
|
|
|
//
|
|
|
|
cy.toastWait("Successfully updated the user details"); |
|
|
|
// // opt-in requested role & submit
|
|
|
|
|
|
|
|
// //
|
|
|
|
this.roleURL[role] = |
|
|
|
// cy.getActiveMenu().contains(role).click();
|
|
|
|
"http://localhost:3000/#/user/authentication/signin"; |
|
|
|
// cy.get(".nc-invite-or-save-btn").click();
|
|
|
|
}; |
|
|
|
// cy.toastWait("Successfully updated the user details");
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// this.roleURL[role] =
|
|
|
|
|
|
|
|
// "http://localhost:3000/#/user/authentication/signin";
|
|
|
|
|
|
|
|
// };
|
|
|
|
|
|
|
|
|
|
|
|
getCell = (columnHeader, cellNumber) => { |
|
|
|
getCell = (columnHeader, cellNumber) => { |
|
|
|
return cy.get( |
|
|
|
return cy.get( |
|
|
@ -183,7 +183,7 @@ export class _mainPage { |
|
|
|
force: true, |
|
|
|
force: true, |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
cy.getActiveMenu().find('input.nc-column-name-input', { timeout: 3000 }) |
|
|
|
cy.getActiveMenu(".nc-dropdown-grid-add-column").find('input.nc-column-name-input', { timeout: 3000 }) |
|
|
|
.should('exist') |
|
|
|
.should('exist') |
|
|
|
.clear() |
|
|
|
.clear() |
|
|
|
.type(colName); |
|
|
|
.type(colName); |
|
|
@ -197,7 +197,7 @@ export class _mainPage { |
|
|
|
force: true, |
|
|
|
force: true, |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
cy.getActiveMenu().find('input.nc-column-name-input', { timeout: 3000 }) |
|
|
|
cy.getActiveMenu(".nc-dropdown-grid-add-column").find('input.nc-column-name-input', { timeout: 3000 }) |
|
|
|
.should('exist') |
|
|
|
.should('exist') |
|
|
|
.clear() |
|
|
|
.clear() |
|
|
|
.type(colName); |
|
|
|
.type(colName); |
|
|
@ -265,34 +265,34 @@ export class _mainPage { |
|
|
|
|
|
|
|
|
|
|
|
shareViewList = () => { |
|
|
|
shareViewList = () => { |
|
|
|
cy.get(".nc-actions-menu-btn").should('exist').click(); |
|
|
|
cy.get(".nc-actions-menu-btn").should('exist').click(); |
|
|
|
return cy.getActiveMenu().find('.ant-dropdown-menu-item').contains('Shared View List'); |
|
|
|
return cy.getActiveMenu(".nc-dropdown-actions-menu").find('.ant-dropdown-menu-item').contains('Shared View List'); |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
downloadCsv = () => { |
|
|
|
downloadCsv = () => { |
|
|
|
cy.get(".nc-actions-menu-btn").should('exist').click(); |
|
|
|
cy.get(".nc-actions-menu-btn").should('exist').click(); |
|
|
|
return cy.getActiveMenu().find('.ant-dropdown-menu-item').contains('Download as CSV'); |
|
|
|
return cy.getActiveMenu(".nc-dropdown-actions-menu").find('.ant-dropdown-menu-item').contains('Download as CSV'); |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
downloadExcel = () => { |
|
|
|
downloadExcel = () => { |
|
|
|
cy.get(".nc-actions-menu-btn").should('exist').click(); |
|
|
|
cy.get(".nc-actions-menu-btn").should('exist').click(); |
|
|
|
return cy.getActiveMenu().find('.ant-dropdown-menu-item').contains('Download as XLSX'); |
|
|
|
return cy.getActiveMenu(".nc-dropdown-actions-menu").find('.ant-dropdown-menu-item').contains('Download as XLSX'); |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
uploadCsv = () => { |
|
|
|
uploadCsv = () => { |
|
|
|
cy.get(".nc-actions-menu-btn").should('exist').click(); |
|
|
|
cy.get(".nc-actions-menu-btn").should('exist').click(); |
|
|
|
return cy.getActiveMenu().find('.ant-dropdown-menu-item').contains('Upload CSV'); |
|
|
|
return cy.getActiveMenu(".nc-dropdown-actions-menu").find('.ant-dropdown-menu-item').contains('Upload CSV'); |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
automations = () => { |
|
|
|
automations = () => { |
|
|
|
cy.get(".nc-actions-menu-btn").should('exist').click(); |
|
|
|
cy.get(".nc-actions-menu-btn").should('exist').click(); |
|
|
|
return cy.getActiveMenu().find('.ant-dropdown-menu-item').contains('Webhooks'); |
|
|
|
return cy.getActiveMenu(".nc-dropdown-actions-menu").find('.ant-dropdown-menu-item').contains('Webhooks'); |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
hideField = (field) => { |
|
|
|
hideField = (field) => { |
|
|
|
cy.get(`th[data-title="${field}"]`).should("be.visible"); |
|
|
|
cy.get(`th[data-title="${field}"]`).should("be.visible"); |
|
|
|
cy.get(".nc-fields-menu-btn").click(); |
|
|
|
cy.get(".nc-fields-menu-btn").click(); |
|
|
|
cy.wait(500) |
|
|
|
cy.wait(500) |
|
|
|
cy.getActiveMenu().find(`.nc-fields-list label:contains(${field}):visible`).click(); |
|
|
|
cy.getActiveMenu(".nc-dropdown-fields-menu").find(`.nc-fields-list label:contains(${field}):visible`).click(); |
|
|
|
cy.wait(500) |
|
|
|
cy.wait(500) |
|
|
|
cy.get(".nc-fields-menu-btn").click(); |
|
|
|
cy.get(".nc-fields-menu-btn").click(); |
|
|
|
cy.wait(500) |
|
|
|
cy.wait(500) |
|
|
@ -303,7 +303,7 @@ export class _mainPage { |
|
|
|
cy.get(`th[data-title="${field}"]`).should("not.exist"); |
|
|
|
cy.get(`th[data-title="${field}"]`).should("not.exist"); |
|
|
|
cy.get(".nc-fields-menu-btn").click(); |
|
|
|
cy.get(".nc-fields-menu-btn").click(); |
|
|
|
cy.wait(500) |
|
|
|
cy.wait(500) |
|
|
|
cy.getActiveMenu().find(`.nc-fields-list label:contains(${field}):visible`).click(); |
|
|
|
cy.getActiveMenu(".nc-dropdown-fields-menu").find(`.nc-fields-list label:contains(${field}):visible`).click(); |
|
|
|
cy.wait(500) |
|
|
|
cy.wait(500) |
|
|
|
cy.get(".nc-fields-menu-btn").click(); |
|
|
|
cy.get(".nc-fields-menu-btn").click(); |
|
|
|
cy.wait(500) |
|
|
|
cy.wait(500) |
|
|
@ -411,10 +411,10 @@ export class _mainPage { |
|
|
|
|
|
|
|
|
|
|
|
if(role === 'commenter' || role === 'viewer') { |
|
|
|
if(role === 'commenter' || role === 'viewer') { |
|
|
|
cy.get(".nc-actions-menu-btn").click(); |
|
|
|
cy.get(".nc-actions-menu-btn").click(); |
|
|
|
cy.getActiveMenu().find('.nc-project-menu-item').contains('Download as CSV').click(); |
|
|
|
cy.getActiveMenu(".nc-dropdown-actions-menu").find('.nc-project-menu-item').contains('Download as CSV').click(); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
cy.get(".nc-actions-menu-btn").click(); |
|
|
|
cy.get(".nc-actions-menu-btn").click(); |
|
|
|
cy.getActiveMenu().find('.nc-project-menu-item').contains('Download').click(); |
|
|
|
cy.getActiveMenu(".nc-dropdown-actions-menu").find('.nc-project-menu-item').contains('Download').click(); |
|
|
|
cy.wait(1000); |
|
|
|
cy.wait(1000); |
|
|
|
cy.get('.nc-project-menu-item').contains('Download as CSV').should('exist').click(); |
|
|
|
cy.get('.nc-project-menu-item').contains('Download as CSV').should('exist').click(); |
|
|
|
} |
|
|
|
} |
|
|
|