Skip to content

Commit

Permalink
Update the test again
Browse files Browse the repository at this point in the history
Because the "skip to next" button is no longer part of this component,
this test cannot possibly pass.

I would like to write a test that would load HomeView.vue and check
over the entire throughput, but I don't have time for that right now.
  • Loading branch information
nbarnabee committed Mar 8, 2023
1 parent 308d063 commit 6459295
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/components/__tests__/Home.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,18 +55,18 @@ describe("Home", () => {
);
expect(rows[3].findAll("td")[1].text()).toBe("wikidata_qid");

// click on Skip to Next button
await wrapper.findAll("button")[1].trigger("click");
// // click on Skip to Next button
// await wrapper.findAll("button")[1].trigger("click");

// Expect the table to be updated with the next task details
const updatedRows = wrapper.find("tbody").findAll("tr");
expect(rows[0].findAll("td")[1].text()).toBe("toolforge-authors");
expect(rows[1].findAll("td")[1].text()).toBe(
"This project is aimed at getting very basic author statistics for a specified page."
);
expect(rows[2].findAll("td")[1].text()).toBe(
"https://toolsadmin.wikimedia.org/tools/id/authors"
);
expect(rows[3].findAll("td")[1].text()).toBe("openhub_id");
// // Expect the table to be updated with the next task details
// const updatedRows = wrapper.find("tbody").findAll("tr");
// expect(rows[0].findAll("td")[1].text()).toBe("toolforge-authors");
// expect(rows[1].findAll("td")[1].text()).toBe(
// "This project is aimed at getting very basic author statistics for a specified page."
// );
// expect(rows[2].findAll("td")[1].text()).toBe(
// "https://toolsadmin.wikimedia.org/tools/id/authors"
// );
// expect(rows[3].findAll("td")[1].text()).toBe("openhub_id");
});
});

0 comments on commit 6459295

Please sign in to comment.