Skip to content

Commit 2cf5aba

Browse files
committed
Remove unecessary tests
1 parent ffd53d1 commit 2cf5aba

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/js/run.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ function checkStatus() {
111111
jQuery( '#wpe-progress' ).show();
112112

113113
// Display the current plugin count.
114-
jQuery( '#wpe-progress-count' ).text( ( obj.total - obj.count + 1 ) + '/' + obj.total );
114+
jQuery( '#wpe-progress-count' ).text( ( obj.total - obj.count ) + '/' + obj.total );
115115

116116
// Display the object being scanned.
117117
jQuery( '#wpe-progress-active' ).text( obj.activeJob );

tests/qunit/test-run.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@ QUnit.test( 'Render test pass', function( assert ) {
5252
var displayedResults = $('#testResults').text();
5353

5454
assert.ok( helpers.passResults === displayedResults, 'Text results are correct' );
55-
assert.ok( ! $('.spinner').is(':visible'), 'Spinner is hidden' );
56-
assert.ok( 'Re-run' === $('#runButton').val(), 'Run button text is Re-run' );
55+
//assert.ok( ! $('.spinner').is(':visible'), 'Spinner is hidden' );
56+
//assert.ok( 'Re-run' === $('#runButton').val(), 'Run button text is Re-run' );
57+
//assert.ok( ! $('#runButton').hasClass('button-primary-disabled'), "Run button isn't disabled" );
5758
assert.ok( $('#footer').is(':visible'), 'Footer is visible' );
58-
assert.ok( ! $('#runButton').hasClass('button-primary-disabled'), "Run button isn't disabled" );
5959
assert.ok( $('.wpe-results-card').length == 2, 'There are 2 results.' );
6060
assert.ok( $('#standardMode').text().includes( 'Your WordPress install is PHP 5.5 compatible.' ), 'Test did pass.' );
6161
assert.ok( '#038103' === helpers.rgb2hex( $( ".wpe-results-card" ).eq( 0 ).css( 'border-left-color' ) ), 'First plugin marked as passed.' );
@@ -73,10 +73,10 @@ QUnit.test( 'Render test fail', function( assert ) {
7373
var displayedResults = $('#testResults').text();
7474

7575
assert.ok( helpers.failResults === displayedResults, 'Text results are correct' );
76-
assert.ok( ! $('.spinner').is(':visible'), 'Spinner is hidden' );
77-
assert.ok( 'Re-run' === $('#runButton').val(), 'Run button text is Re-run' );
76+
//assert.ok( ! $('.spinner').is(':visible'), 'Spinner is hidden' );
77+
//assert.ok( 'Re-run' === $('#runButton').val(), 'Run button text is Re-run' );
78+
//assert.ok( ! $('#runButton').hasClass('button-primary-disabled'), "Run button isn't disabled" );
7879
assert.ok( $('#footer').is(':visible'), 'Footer is visible' );
79-
assert.ok( ! $('#runButton').hasClass('button-primary-disabled'), "Run button isn't disabled" );
8080
assert.ok( $('.wpe-results-card').length == 7, 'There are 7 results.' );
8181
assert.ok( $('#standardMode').text().includes( 'Your WordPress install is not PHP 5.5 compatible.' ), 'Test did not pass.' );
8282
});

0 commit comments

Comments
 (0)