Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update tests to the new backend changes #29

Draft
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

fahimalizain
Copy link
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
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
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?

@@ -1045,7 +1038,8 @@ describe("Frappe Model Controller", function() {
expect(getTags.success).to.be.true;

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
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 🤦 😄

@@ -34,7 +34,8 @@ describe("File Utils", function() {
path.join(__dirname, "..", "tests", "sample.txt")
);
expect(fileResult.fileName).to.be.equal("sample.txt");
expect(fileResult.fileSize).to.be.equal(27);
expect(fileResult.fileSize).to.be.gte(24);
Copy link
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
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
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
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