Browse Source

[test] cypress: support for split category in shared view list

Signed-off-by: Raju Udava <sivadstala@gmail.com>
pull/679/head
Raju Udava 3 years ago
parent
commit
8d21666fbd
  1. 13
      cypress/support/page_objects/mainPage.js
  2. 2
      cypress/support/page_objects/navigation.js

13
cypress/support/page_objects/mainPage.js

@ -197,12 +197,19 @@ export class _mainPage {
cy.getActiveMenu().find('.v-list-item').contains('Views List').click()
cy.get(1000)
cy.wait(1000)
// cy.get('.container').find('button.mdi-delete-outline')
cy.get('th:contains("View Link")').parent().parent()
.next().find('tr').each((tableRow) => {
cy.wrap(tableRow).find('button').last().click()
.next().find('tr').each(($tableRow) => {
cy.log($tableRow[0].childElementCount)
// one of the row would contain seggregation header ('other views)
if (4 == $tableRow[0].childElementCount) {
cy.wrap($tableRow).find('button').last().click()
cy.wait(1000)
}
})
.then(() => {
cy.get('.v-overlay__content > .d-flex > .v-icon').click()

2
cypress/support/page_objects/navigation.js

@ -263,7 +263,7 @@ export class _projectsPage {
}
waitHomePageLoad() {
cy.url({ timeout: 25000 }).should('contain', '?type=roles')
cy.url({ timeout: 50000 }).should('contain', '?type=roles')
}
waitDeletePageLoad() {

Loading…
Cancel
Save