diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index 3f5ebe496..3555f2132 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -10,7 +10,7 @@ Your pull request will undergo a review and if approved will be merged. All chec In order to perform all the necessary checks before pulling your changes in, you need to run npm install - grunt verify + npx grunt verify # Workflow When working on an issue for the Ignite UI for jQuery repository, you need to be aware of and to follow a correct status workflow. We have created a number of status labels in order to communicate well what the current status of a single issue/pull request is. The statuses are as follows: diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 2e8f83dad..59a85c225 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -27,7 +27,7 @@ jobs: node-version: ${{ matrix.node-version }} cache: 'npm' - run: npm ci - - run: grunt build + - run: npm run build - run: npm run cover - name: Publish to coveralls.io diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 3ed416624..05abad486 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -28,7 +28,7 @@ jobs: - run: echo "NODE_OPTIONS='--max_old_space_size=4096'" >> $GITHUB_ENV - run: npm ci - - run: grunt build + - run: npm run build # define npm tag - run: if [[ ${VERSION} == *"alpha"* || ${VERSION} == *"beta"* || ${VERSION} == *"rc"* ]]; then echo "NPM_TAG=next"; else echo "NPM_TAG=latest"; fi >> $GITHUB_ENV diff --git a/README.md b/README.md index d0d7b96cc..182b79a1a 100644 --- a/README.md +++ b/README.md @@ -176,7 +176,7 @@ The command will install all build dependencies as well as bower packages used i To build the product: ```bash -grunt build +npm run build ``` This will create source files under the `dist/` folder complete with merged locales, combined script and structure CSS and can be called again to include new changes. diff --git a/package.json b/package.json index 7bfcf7785..3df7f5e80 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,6 @@ "scripts": { "test": "karma start", "cover": "grunt hint && npm test -- --single-run", - "postinstall": "npm install -g grunt-cli", "build": "grunt build" }, "dependencies": { diff --git a/tests/unit/upload/upload-test.js b/tests/unit/upload/upload-test.js index 7e0a14065..d58d52626 100644 --- a/tests/unit/upload/upload-test.js +++ b/tests/unit/upload/upload-test.js @@ -480,13 +480,15 @@ QUnit.test('[ID14] igUpload MULTIPLE MODE test show/hide details', function (ass // MULTIPLE UPLOAD Show/Hide Details var click = jQuery.Event("click"), - buttonShowHideDetails = $('#' + uploaderId + '_shdbtn'); + buttonShowHideDetails = $('#' + uploaderId + '_shdbtn'), + fileContainer = $('#' + uploaderId + '_fc'); buttonShowHideDetails.trigger(click); - $.ig.TestUtil.wait(500).then(function () { - assert.equal($('#' + uploaderId + '_fc').is(':hidden'), true, 'File container should be hidden.'); + // wait for the slideToggle animation to complete instead of a fixed timeout equal to its duration + fileContainer.promise().then(function () { + assert.equal(fileContainer.is(':hidden'), true, 'File container should be hidden.'); buttonShowHideDetails.trigger(click); - assert.equal($('#' + uploaderId + '_fc').is(':hidden'), false, 'File container should be hidden.'); + assert.equal(fileContainer.is(':hidden'), false, 'File container should be visible.'); done(); }).catch(function (er) { assert.pushResult({ result: false, message: er.message });