Skip to content

Commit

Permalink
Skip failing listens list snapshot test
Browse files Browse the repository at this point in the history
The test fails because we show relative times in the listens list
("x days ago") which means that the snapshot changes with time

Skipping for now until we get more time to fix it.
  • Loading branch information
paramsingh committed Apr 13, 2020
1 parent 1efcab9 commit 31bf3de
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion listenbrainz/webserver/static/js/src/RecentListens.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@ const props = {
};

describe("RecentListens", () => {
it("renders correctly on the profile page", () => {
// this test fails because we show relative times for listens ("x days ago")
// which means that the snapshot changes with time
// TODO: fix this
it.skip("renders correctly on the profile page", () => {
const wrapper = mount(<RecentListens {...props} />);
expect(wrapper.html()).toMatchSnapshot();
});
Expand Down

0 comments on commit 31bf3de

Please sign in to comment.