Skip to content

Update tests to the new backend changes#29

Draft
fahimalizain wants to merge 9 commits intoleam-tech:masterfrom
fahimalizain:meta-tests-fix
Draft

Update tests to the new backend changes#29
fahimalizain wants to merge 9 commits intoleam-tech:masterfrom
fahimalizain:meta-tests-fix

Conversation

@fahimalizain
Copy link
Copy Markdown
Member

Everything else passes successfully in this suite

@fahimalizain fahimalizain changed the title tests: Meta tests fix Update tests to the new backend changes Aug 17, 2020
@fahimalizain fahimalizain marked this pull request as draft August 18, 2020 05:51
expect(r.success).to.be.false;
});
// v13 - doesnt throw error now. It just prints message that the user is assigned already
// it("should fail assigning same doc to a User since already assigned", async function() {
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@assemmarwan this update came in v13 - that no error is thrown when duplicate assignments are made, what should we do ?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@faztp12 I think we can introduce a new test when testing against v13 that will not throw error if a same user is assigned. While the <v12 test will be skipped. And vice versa, what do you think?

expect(getTags.data).to.an.instanceOf(Array);
expect(getTags.data.length).to.be.equal(0);
// TODO: update this after frappe fixes get_tags
// expect(getTags.data.length).to.be.equal(0);
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@assemmarwan well, frappe still hasnt fixed the tags bug 🤦 😄

);
expect(fileResult.fileName).to.be.equal("sample.txt");
expect(fileResult.fileSize).to.be.equal(27);
expect(fileResult.fileSize).to.be.gte(24);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@faztp12 why not exactly?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@assemmarwan looks like the file checked out on windows and checked out on unix systems are a byte different ?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see, please add a comment mentioning that to avoid confusion.

@assemmarwan
Copy link
Copy Markdown
Member

@faztp12 Please add tests for loadTranslations since they are missing as pointed out by @e-lobo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants