Skip to content

Commit

Permalink
enable and remove test suites
Browse files Browse the repository at this point in the history
  • Loading branch information
issackjohn committed Sep 8, 2023
1 parent 1d107bd commit 54470fd
Showing 1 changed file with 0 additions and 94 deletions.
94 changes: 0 additions & 94 deletions resources/tests.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -86,36 +86,6 @@ Suites.push({
],
});

Suites.push({
name: "TodoMVC-JavaScript-ES6-Webpack",
url: "todomvc/vanilla-examples/javascript-es6-webpack/dist/index.html",
tags: ["todomvc"],
async prepare(page) {
const element = await page.waitForElement(".new-todo");
element.focus();
},
tests: [
new BenchmarkTestStep(`Adding${numberOfItemsToAdd}Items`, (page) => {
const newTodo = page.querySelector(".new-todo");
for (let i = 0; i < numberOfItemsToAdd; i++) {
newTodo.setValue(getTodoText("ru", i));
newTodo.dispatchEvent("change");
newTodo.enter("keypress");
}
}),
new BenchmarkTestStep("CompletingAllItems", (page) => {
const checkboxes = page.querySelectorAll(".toggle");
for (let i = 0; i < numberOfItemsToAdd; i++)
checkboxes[i].click();
}),
new BenchmarkTestStep("DeletingAllItems", (page) => {
const deleteButtons = page.querySelectorAll(".destroy");
for (let i = numberOfItemsToAdd - 1; i >= 0; i--)
deleteButtons[i].click();
}),
],
});

Suites.push({
name: "TodoMVC-WebComponents",
url: "todomvc/vanilla-examples/javascript-web-components/dist/index.html",
Expand Down Expand Up @@ -358,65 +328,6 @@ Suites.push({
],
});


Suites.push({
name: "TodoMVC-Preact",
url: "todomvc/architecture-examples/preact/dist/index.html#/home",
tags: ["todomvc"],
async prepare(page) {
const element = await page.waitForElement(".new-todo");
element.focus();
},
tests: [
new BenchmarkTestStep(`Adding${numberOfItemsToAdd}Items`, (page) => {
const newTodo = page.querySelector(".new-todo");
for (let i = 0; i < numberOfItemsToAdd; i++) {
newTodo.setValue(getTodoText(defaultLanguage, i));
newTodo.enter("keydown");
}
}),
new BenchmarkTestStep("CompletingAllItems", (page) => {
const checkboxes = page.querySelectorAll(".toggle");
for (let i = 0; i < numberOfItemsToAdd; i++)
checkboxes[i].click();
}),
new BenchmarkTestStep("DeletingAllItems", (page) => {
const deleteButtons = page.querySelectorAll(".destroy");
for (let i = numberOfItemsToAdd - 1; i >= 0; i--)
deleteButtons[i].click();
}),
],
});

Suites.push({
name: "TodoMVC-Svelte",
url: "todomvc/architecture-examples/svelte/dist/index.html",
tags: ["todomvc"],
async prepare(page) {
const element = await page.waitForElement(".new-todo");
element.focus();
},
tests: [
new BenchmarkTestStep(`Adding${numberOfItemsToAdd}Items`, (page) => {
const newTodo = page.querySelector(".new-todo");
for (let i = 0; i < numberOfItemsToAdd; i++) {
newTodo.setValue(getTodoText(defaultLanguage, i));
newTodo.enter("keydown");
}
}),
new BenchmarkTestStep("CompletingAllItems", (page) => {
const checkboxes = page.querySelectorAll(".toggle");
for (let i = 0; i < numberOfItemsToAdd; i++)
checkboxes[i].click();
}),
new BenchmarkTestStep("DeletingAllItems", (page) => {
const deleteButtons = page.querySelectorAll(".destroy");
for (let i = numberOfItemsToAdd - 1; i >= 0; i--)
deleteButtons[i].click();
}),
],
});

Suites.push({
name: "TodoMVC-Lit",
url: "todomvc/architecture-examples/lit/dist/index.html",
Expand Down Expand Up @@ -483,7 +394,6 @@ Suites.push({
name: "TodoMVC-JavaScript-ES6-Webpack-Complex-DOM",
url: "todomvc/vanilla-examples/javascript-es6-webpack-complex/dist/index.html",
tags: ["todomvc", "complex", "complex-default"],
disabled: true,
async prepare(page) {
const element = await page.waitForElement(".new-todo");
element.focus();
Expand Down Expand Up @@ -610,7 +520,6 @@ Suites.push({
name: "TodoMVC-Angular-Complex-DOM",
url: "todomvc/architecture-examples/angular-complex/dist/index.html",
tags: ["todomvc", "complex", "complex-default"],
disabled: true,
async prepare(page) {
const element = await page.waitForElement(".new-todo");
element.focus();
Expand Down Expand Up @@ -641,7 +550,6 @@ Suites.push({
name: "TodoMVC-Vue-Complex-DOM",
url: "todomvc/architecture-examples/vue-complex/dist/index.html",
tags: ["todomvc", "complex", "complex-default"],
disabled: true,
async prepare(page) {
const element = await page.waitForElement(".new-todo");
element.focus();
Expand Down Expand Up @@ -702,7 +610,6 @@ Suites.push({
name: "TodoMVC-Preact-Complex-DOM",
url: "todomvc/architecture-examples/preact-complex/dist/index.html#/home",
tags: ["todomvc", "complex", "complex-default"],
disabled: true,
async prepare(page) {
const element = await page.waitForElement(".new-todo");
element.focus();
Expand Down Expand Up @@ -732,7 +639,6 @@ Suites.push({
name: "TodoMVC-Svelte-Complex-DOM",
url: "todomvc/architecture-examples/svelte-complex/dist/index.html",
tags: ["todomvc", "complex", "complex-default"],
disabled: true,
async prepare(page) {
const element = await page.waitForElement(".new-todo");
element.focus();
Expand Down

0 comments on commit 54470fd

Please sign in to comment.