Unverified Commit 937171cf authored by Mladen Todorovic's avatar Mladen Todorovic Committed by GitHub
Browse files

Issue #3115061 by mtodor, daniel.bosen: Performance tests are failing with paragraphs 1.11

* Fix selectors for add paragraphs
parent b1d1f52d
Loading
Loading
Loading
Loading
+3 −1
Changes for tests/src/Nightwatch/Commands/paragraphs/add.js: 3 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -39,7 +39,9 @@ exports.command = function add(fieldName, type, position) {
    .click(
      `//table[contains(@id, "${fieldNameId}-values")]/tbody/tr[${addButtonPosition}]//input`
    )
    .click(`//*[@name="${fieldName}_${type}_add_more"]`)
    .click(
      `//div[contains(@class, "ui-dialog-content")]/*[contains(@class, "paragraphs-add-dialog-list")]//*[@name="${fieldName}_${type}_add_more"]`
    )
    .waitForElementVisible(
      `//table[contains(@id, "${fieldNameId}-values")]/tbody/tr[${addButtonPosition +
        1}]//div[contains(@class, "ajax-new-content")]`,