Browse Source

test(cypress): corrections after removal of basic toasts

Signed-off-by: Raju Udava <sivadstala@gmail.com>
pull/865/head
Raju Udava 3 years ago
parent
commit
aaa5e03eb0
  1. 2
      scripts/cypress/integration/common/1b_table_column_operations.js
  2. 8
      scripts/cypress/integration/common/3a_filter_sort_fields_operations.js

2
scripts/cypress/integration/common/1b_table_column_operations.js

@ -111,7 +111,7 @@ export const genTest = (type, xcdb) => {
// delete row
cy.getActiveMenu().find('.v-list-item:contains("Delete Row")').first().click({force: true})
cy.toastWait('Deleted row successfully')
// cy.toastWait('Deleted row successfully')
cy.get('td').contains(randVal).should('not.exist');
})
})

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

@ -57,7 +57,7 @@ export const genTest = (type, xcdb) => {
mainPage.getCell("Country", 10).rightclick()
cy.getActiveMenu().contains('Delete Row').click()
cy.toastWait('Deleted row successfully')
// cy.toastWait('Deleted row successfully')
// verify
mainPage.getCell("Country", 10).should('not.exist')
@ -70,13 +70,13 @@ export const genTest = (type, xcdb) => {
cy.getActiveMenu().contains('Insert New Row').click({force: true})
mainPage.getCell("Country", 10).dblclick().find('input').type('Test Country-1{enter}')
cy.toastWait('saved successfully')
// cy.toastWait('saved successfully')
mainPage.getCell("Country", 10).rightclick({force: true})
cy.getActiveMenu().contains('Insert New Row').click({force: true})
mainPage.getCell("Country", 11).dblclick().find('input').type('Test Country-2{enter}')
cy.toastWait('saved successfully')
// cy.toastWait('saved successfully')
// verify
mainPage.getCell("Country", 10).contains("Test Country-1").should('exist')
@ -92,7 +92,7 @@ export const genTest = (type, xcdb) => {
mainPage.getCell("Country", 10).rightclick({force: true})
cy.getActiveMenu().contains('Delete Selected Row').click({force: true})
cy.toastWait('Deleted selected rows successfully')
// cy.toastWait('Deleted 2 selected rows successfully')
// verify
mainPage.getCell("Country", 10).should('not.exist')

Loading…
Cancel
Save