Browse Source

test: pagination handling fix

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
pull/3569/head
Raju Udava 2 years ago
parent
commit
536f05ba74
  1. 13
      scripts/cypress/integration/common/3a_filter_sort_fields_operations.js

13
scripts/cypress/integration/common/3a_filter_sort_fields_operations.js

@ -1,4 +1,5 @@
import { mainPage } from "../../support/page_objects/mainPage";
import { loginPage} from "../../support/page_objects/navigation";
import { isTestSuiteActive } from "../../support/page_objects/projectConstants";
export const genTest = (apiType, dbType) => {
@ -6,14 +7,7 @@ export const genTest = (apiType, dbType) => {
describe(`${apiType.toUpperCase()} api - Filter, Fields, Sort`, () => {
before(() => {
cy.fileHook();
mainPage.tabReset();
// // kludge: wait for page load to finish
// cy.wait(1000);
// // close team & auth tab
// cy.get('button.ant-tabs-tab-remove').should('exist').click();
// cy.wait(1000);
loginPage.loginAndOpenProject(apiType, dbType);
// open country table
cy.openTableTab("Country", 25);
@ -25,7 +19,6 @@ export const genTest = (apiType, dbType) => {
describe(`Pagination`, () => {
beforeEach(() => {
cy.fileHook();
})
// check pagination
@ -95,6 +88,8 @@ export const genTest = (apiType, dbType) => {
// verify
cy.get(`:nth-child(10) > [data-title="Country"]`).should("not.exist");
mainPage.getPagination(1).click();
});
// create new row using right click menu option

Loading…
Cancel
Save