Browse Source

test: [cypress] test order corrections (file rename)

Signed-off-by: Raju Udava <sivadstala@gmail.com>
pull/559/head
Raju Udava 3 years ago
parent
commit
20a64215a0
  1. 0
      cypress/integration/common/00_pre_configurations.js
  2. 0
      cypress/integration/common/0a_project_operations.js
  3. 3
      cypress/integration/common/1a_table_operations.js
  4. 2
      cypress/integration/common/1b_table_column_operations.js
  5. 0
      cypress/integration/common/1c_table_row_operations.js
  6. 0
      cypress/integration/common/2a_table_with_belongs_to_colulmn.js
  7. 0
      cypress/integration/common/2b_table_with_m2m_column.js
  8. 36
      cypress/integration/common/3a_filter_sort_fields_operations.js
  9. 0
      cypress/integration/common/3b_formula_column.js
  10. 0
      cypress/integration/common/3c_lookup_column.js
  11. 0
      cypress/integration/common/3d_rollup_column.js
  12. 0
      cypress/integration/common/4a_table_view_grid_gallery.js
  13. 0
      cypress/integration/common/4b_table_view_share.js
  14. 0
      cypress/integration/common/5a_user_role.js
  15. 0
      cypress/integration/common/5b_preview_role.js
  16. 0
      cypress/integration/common/6a_audit.js

0
cypress/integration/common/_pre_configurations.js → cypress/integration/common/00_pre_configurations.js

0
cypress/integration/common/project_operations_spec.js → cypress/integration/common/0a_project_operations.js

3
cypress/integration/common/table_operations_spec.js → cypress/integration/common/1a_table_operations.js

@ -49,11 +49,8 @@ const genTest = (type, meta) => {
.first().click() .first().click()
cy.get('.nc-project-tree').contains(name, {timeout: 6000}).first().click({force: true}); cy.get('.nc-project-tree').contains(name, {timeout: 6000}).first().click({force: true});
cy.get(`.project-tab:contains(${name}):visible`).should('exist') cy.get(`.project-tab:contains(${name}):visible`).should('exist')
cy.get('.nc-table-delete-btn:visible').click() cy.get('.nc-table-delete-btn:visible').click()
cy.get('button:contains(Submit)').click() cy.get('button:contains(Submit)').click()
cy.get(`.project-tab:contains(${name}):visible`).first().should('not.exist') cy.get(`.project-tab:contains(${name}):visible`).first().should('not.exist')
}); });

2
cypress/integration/common/table_column_operations_spec.js → cypress/integration/common/1b_table_column_operations.js

@ -82,7 +82,7 @@ const genTest = (type) => {
cy.get(`th:contains(${updatedColName})`).should('not.exist'); cy.get(`th:contains(${updatedColName})`).should('not.exist');
}) })
}) })
} }
genTest('rest') genTest('rest')

0
cypress/integration/common/table_row_operations_spec.js → cypress/integration/common/1c_table_row_operations.js

0
cypress/integration/common/open_existing_table_spec.js → cypress/integration/common/2a_table_with_belongs_to_colulmn.js

0
cypress/integration/common/open_existing_table_with_m2m_spec.js → cypress/integration/common/2b_table_with_m2m_column.js

36
cypress/integration/common/filter_sort_fields_operations_spec.js → cypress/integration/common/3a_filter_sort_fields_operations.js

@ -4,7 +4,7 @@ import { loginPage } from "../../support/page_objects/navigation"
const genTest = (type) => { const genTest = (type) => {
describe(`${type.toUpperCase()} api - Filter, Fields, Sort`, () => { describe(`${type.toUpperCase()} api - Filter, Fields, Sort`, () => {
before(() => { before(() => {
loginPage.loginAndOpenProject(type) loginPage.loginAndOpenProject(type)
@ -15,8 +15,8 @@ const genTest = (type) => {
}) })
describe(`Pagination`, () => { describe(`Pagination`, () => {
// check pagination // check pagination
it('Check country table - Pagination', () => { it('Check country table - Pagination', () => {
cy.get('.nc-pagination').should('exist') cy.get('.nc-pagination').should('exist')
// verify > pagination option // verify > pagination option
@ -36,14 +36,14 @@ const genTest = (type) => {
it('Add row using tool header button', () => { it('Add row using tool header button', () => {
// add a row to end of Country table // add a row to end of Country table
cy.get('.nc-add-new-row-btn').click(); cy.get('.nc-add-new-row-btn').click();
cy.get('#data-table-form-Country > input').first().type('Test Country'); cy.get('#data-table-form-Country > input').first().type('Test Country');
cy.contains('Save Row').filter('button').click() cy.contains('Save Row').filter('button').click()
// verify // verify
mainPage.getPagination(5).click() mainPage.getPagination(5).click()
mainPage.getCell("Country", 10).contains("Test Country").should('exist') mainPage.getCell("Country", 10).contains("Test Country").should('exist')
}) })
// delete slingle row // delete slingle row
// //
@ -94,21 +94,21 @@ const genTest = (type) => {
describe(`Sort operations`, () => { describe(`Sort operations`, () => {
it('Enable sort', () => { it('Enable sort', () => {
// Sort menu operations (Country Column, Z->A) // Sort menu operations (Country Column, Z->A)
cy.get('.nc-sort-menu-btn').click() cy.get('.nc-sort-menu-btn').click()
cy.contains('Add Sort Option').click(); cy.contains('Add Sort Option').click();
cy.get('.nc-sort-field-select div').first().click() cy.get('.nc-sort-field-select div').first().click()
cy.get('.menuable__content__active .v-list-item:contains(Country)').click() cy.get('.menuable__content__active .v-list-item:contains(Country)').click()
cy.get('.nc-sort-dir-select div').first().click() cy.get('.nc-sort-dir-select div').first().click()
cy.get('.menuable__content__active .v-list-item:contains("Z -> A")').click() cy.get('.menuable__content__active .v-list-item:contains("Z -> A")').click()
cy.contains('Zambia').should('exist') cy.contains('Zambia').should('exist')
}) })
it('Disable sort', () => { it('Disable sort', () => {
// remove sort and validate // remove sort and validate
cy.get('.nc-sort-item-remove-btn').click() cy.get('.nc-sort-item-remove-btn').click()
cy.contains('Zambia').should('not.exist') cy.contains('Zambia').should('not.exist')
}) })
}) })

0
cypress/integration/common/formula_column.js → cypress/integration/common/3b_formula_column.js

0
cypress/integration/common/lookup_column.js → cypress/integration/common/3c_lookup_column.js

0
cypress/integration/common/rollup_column.js → cypress/integration/common/3d_rollup_column.js

0
cypress/integration/common/table_view_spec.js → cypress/integration/common/4a_table_view_grid_gallery.js

0
cypress/integration/common/share_view.js → cypress/integration/common/4b_table_view_share.js

0
cypress/integration/common/user_role_spec.js → cypress/integration/common/5a_user_role.js

0
cypress/integration/common/preview_role_spec.js → cypress/integration/common/5b_preview_role.js

0
cypress/integration/common/audit.js → cypress/integration/common/6a_audit.js

Loading…
Cancel
Save