github.com/outbrain/consul@v1.4.5/ui-v2/tests/lib/page-object/createDeletable.js (about)

     1  export default function(clickable) {
     2    return function(obj, scope = '') {
     3      if (scope !== '') {
     4        scope = scope + ' ';
     5      }
     6      return {
     7        ...obj,
     8        ...{
     9          delete: clickable(scope + '[data-test-delete]'),
    10          confirmDelete: clickable(scope + 'button.type-delete'),
    11        },
    12      };
    13    };
    14  }