mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-17 23:44:39 -05:00
Sped up tests that use {{liquid-if}}
no issue - some tests were unnecessarily slowed down by waiting repeatedly for animations to complete - added override for `<LiquidContainer>` component that `<LiquidIf>` uses internally with the only change being to set the default growth animation duration to 5ms when running tests
This commit is contained in:
parent
ac52e01977
commit
e4b402c603
1 changed files with 12 additions and 0 deletions
12
ghost/admin/app/components/liquid-container.js
Normal file
12
ghost/admin/app/components/liquid-container.js
Normal file
|
@ -0,0 +1,12 @@
|
|||
import LiquidContainer from 'liquid-fire/components/liquid-container';
|
||||
import config from 'ghost-admin/config/environment';
|
||||
|
||||
export default LiquidContainer.extend({
|
||||
init() {
|
||||
this._super(...arguments);
|
||||
|
||||
if (config.environment === 'test') {
|
||||
this.growDuration = 5;
|
||||
}
|
||||
}
|
||||
});
|
Loading…
Add table
Reference in a new issue