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

fix(test): fix bh-date-editor tests #4970

Merged

Conversation

jniles
Copy link
Collaborator

@jniles jniles commented Sep 30, 2020

Cherry picked the bh-date-editor changes from #4837 to bring them into master sooner.

Closes #4919.

@jniles jniles added the Bug Fix label Sep 30, 2020
@jniles jniles force-pushed the fix-end-to-end-test-bh-date-edit branch 3 times, most recently from c8dad2b to 57e14f6 Compare September 30, 2020 12:58
@kwilu kwilu added size: S and removed size: XS labels Sep 30, 2020
@jniles jniles force-pushed the fix-end-to-end-test-bh-date-edit branch from 57e14f6 to 4b18dad Compare October 1, 2020 07:57
@kwilu kwilu added size: M and removed size: S labels Oct 1, 2020
@jniles jniles requested a review from lomamech October 1, 2020 07:57
@@ -17,7 +17,7 @@ class OffdayPage {
await FU.buttons.create();
await FU.input('OffdayModalCtrl.offday.label', offday.label);

components.dateEditor.set(new Date(offday.date), null, '[uib-modal] .title');
await components.dateEditor.set(offday.date, 'offday-date-editor');
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

If anyone is wondering, the critical change was putting an await in front of the component.

@jniles jniles force-pushed the fix-end-to-end-test-bh-date-edit branch 2 times, most recently from d15562c to 5128b55 Compare October 1, 2020 08:34
@kwilu kwilu added size: S and removed size: M labels Oct 1, 2020
@jniles jniles force-pushed the fix-end-to-end-test-bh-date-edit branch 2 times, most recently from bf1697e to 6d188f9 Compare October 1, 2020 09:15
@kwilu kwilu added size: M and removed size: S labels Oct 1, 2020
jniles added 2 commits October 1, 2020 10:58
Cherry picked the bh-date-editor changes from Third-Culture-Software#4837 and add the critical
await call to prevent test failures.

Closes Third-Culture-Software#4919.
Make the integration tests pass by fixing a bug in the CMM calculation.
@jniles jniles force-pushed the fix-end-to-end-test-bh-date-edit branch from 40212d3 to 3a6acf3 Compare October 1, 2020 09:58
The security stock has become the minimum stock for a product.  Not sure
why.
@lomamech
Copy link
Collaborator

lomamech commented Oct 1, 2020

bors r+

@bors
Copy link
Contributor

bors bot commented Oct 1, 2020

Build succeeded:

@bors bors bot merged commit ca2383d into Third-Culture-Software:master Oct 1, 2020
@jniles jniles deleted the fix-end-to-end-test-bh-date-edit branch October 1, 2020 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Offdays tests seems to be flakey
3 participants