Skip to content

Commit

Permalink
ignore typescript bug
Browse files Browse the repository at this point in the history
bug/error documented here: microsoft/TypeScript#28960
  • Loading branch information
yeungalan0 committed May 4, 2021
1 parent 206a0ed commit 2c5913a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cypress/integration/site/blog.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,18 @@ describe("Blog", () => {
it("should have working filtering", function () {
// test filtering with one box works
cy.visit("/blog").get("[data-cy=blog-tags-filter]").click();
cy.get("[data-cy=blog-tags-filter-box-finance]").click();
cy.get("[data-cy=blog-tags-filter-box-values]").click();
cy.get("[data-cy=blog-posts]")
.its("length")
.should("lt", this.postsListLength);

// test filtering with two boxes works
cy.get("[data-cy=blog-tags-filter-box-values]").click();
cy.get("[data-cy=blog-tags-filter-box-projects]").click();
cy.get("[data-cy=blog-posts]").should("not.exist");

// test un-checking boxes returns us to the original state
cy.get("[data-cy=blog-tags-filter-box-finance]").click();
cy.get("[data-cy=blog-tags-filter-box-values]").click();
cy.get("[data-cy=blog-tags-filter-box-projects]").click();
cy.get("[data-cy=blog-posts]")
.its("length")
.should("eq", this.postsListLength);
Expand Down
1 change: 1 addition & 0 deletions pages/blog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ function FilterByTags({
<MenuItem key={tag} value={tag}>
<Checkbox
checked={tags.indexOf(tag) > -1}
// @ts-ignore
inputProps={{ "data-cy": `blog-tags-filter-box-${tag}` }}
/>
<ListItemText primary={tag} />
Expand Down

0 comments on commit 2c5913a

Please sign in to comment.