v1
- by 10basetom 5/16/202300
Setup HTML - click to add setup HTML
disable setup JavaScript
Setup JavaScript
const arr = ['A', 'B', 'C'];
const itemsToAdd = ['C', 'D', 'E'];
delete caserun single casemove downdrag and drop case


ready



itemsToAdd.forEach((i) => {
  if (!arr.includes(i)) {
    arr.push(i);
  }
});
delete caserun single casemove updrag and drop case


ready



arr.push(...itemsToAdd.filter((i) => !arr.includes(i)));
Test Case - click to add another test case
Teardown JS - click to add teardown JavaScript
Output (DOM) - click to monitor output (DOM) while test is running
RUN