Skip to content

Commit

Permalink
make sure progress bar updates and animates
Browse files Browse the repository at this point in the history
  • Loading branch information
andaley committed May 14, 2020
1 parent c5f3e92 commit c73c478
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions ui/app/styles/core/progress.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,5 @@
// style the progress bar
.progress[value]::-webkit-progress-value {
border-radius: $radius;
transition: width 1s ease-out;
}
8 changes: 8 additions & 0 deletions ui/tests/integration/components/replication-dashboard-test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { module, test } from 'qunit';
import { setupRenderingTest } from 'ember-qunit';
import { render } from '@ember/test-helpers';
import { assign } from '@ember/polyfills';
import hbs from 'htmlbars-inline-precompile';

const REPLICATION_DETAILS = {
Expand Down Expand Up @@ -94,5 +95,12 @@ module('Integration | Enterprise | Component | replication-dashboard', function(
IS_REINDEXING.reindex_building_progress,
'shows the reindexing progress inside the alert banner'
);

const reindexingInProgress = assign({}, IS_REINDEXING, { reindex_building_progress: 27000 });
this.set('replicationDetails', reindexingInProgress);

assert
.dom('.message-title>.progress')
.hasValue(reindexingInProgress.reindex_building_progress, 'updates the reindexing progress');
});
});

0 comments on commit c73c478

Please sign in to comment.