Browse Source

test(cypress): couple meta sync click & toast action

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
pull/1027/head
Raju Udava 3 years ago
parent
commit
be226a50a9
  1. 5
      scripts/cypress/support/page_objects/mainPage.js

5
scripts/cypress/support/page_objects/mainPage.js

@ -447,7 +447,10 @@ export class _mainPage {
cy.get(`.nc-metasync-row-${tbl}`).contains(msg).should("exist");
cy.get(".nc-btn-metasync-sync-now")
.should("exist")
.click({ force: true });
.click({ force: true })
.then(() => {
cy.toastWait(`Table metadata recreated successfully`);
});
cy.get(".nc-metasync-row").then((row) => {
for (let i = 0; i < row.length; i++) {
cy.wrap(row).contains("No change identified").should("exist");

Loading…
Cancel
Save