Skip to content

Commit

Permalink
Fix debouce for Behat testing (fake jQuery.active) (#1524)
Browse files Browse the repository at this point in the history
* Use newer lodash lib for throttle

* Fix debouce for Behat testing (fake jQuery.active)

* move debounce code to utils

* fix CI with custom testing images

* unassign using "null" instead of "undefined"

* wait instead of sleep name

* fix image name

* fix phpstan

* minor fix

* fix release

Co-authored-by: Alain Belair <[email protected]>
  • Loading branch information
mvorisek and ibelar authored Jul 12, 2021
1 parent 2e260a0 commit 11fe623
Show file tree
Hide file tree
Showing 18 changed files with 247 additions and 206 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
name: Build Release
runs-on: ubuntu-latest
container:
image: atk4/image:latest-npm
image: ghcr.io/mvorisek/image-php:latest-node
steps:
- uses: actions/checkout@v2
with:
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/test-unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
name: Smoke
runs-on: ubuntu-latest
container:
image: atk4/image:${{ matrix.php }}
image: ghcr.io/mvorisek/image-php:${{ matrix.php }}
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -86,7 +86,7 @@ jobs:
name: Unit
runs-on: ubuntu-latest
container:
image: atk4/image:${{ matrix.php }}
image: ghcr.io/mvorisek/image-php:${{ matrix.php }}
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -181,11 +181,11 @@ jobs:
name: Behat
runs-on: ubuntu-latest
container:
image: atk4/image:${{ matrix.php }}
image: ghcr.io/mvorisek/image-php:${{ matrix.php }}-node
strategy:
fail-fast: false
matrix:
php: ['latest-npm']
php: ['latest']
type: ['Chrome', 'Firefox', 'Chrome Lowest', 'Chrome Slow']
env:
LOG_COVERAGE: ''
Expand Down Expand Up @@ -255,7 +255,6 @@ jobs:
run: |
cp -r public public.orig && rm public/*.js
(cd js && npm run build)
sed -i "s~'https://raw.githack.com/atk4/ui/develop/public.*~'/public',~" src/App.php
diff -qr public public.orig
rm -r public.orig
Expand All @@ -271,6 +270,7 @@ jobs:
run: |
mkdir -p build/logs
php demos/_demo-data/create-sqlite-db.php
sed -i "s~'https://raw.githack.com/atk4/ui/develop/public.*~'/public',~" src/App.php
- name: "Run tests: Behat"
run: |
Expand Down
72 changes: 38 additions & 34 deletions js/Release.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
## Release note

### version 1.19.4 (2021-07-11)

- Remove "debounceTimeout" atk option.

### version 1.19.3 (2021-07-09)

- Update package dependencies.
Expand All @@ -17,7 +21,7 @@

- Multiline component
- add support for Lookup;
- refactor entire component;
- refactor entire component;

### version 1.18.0 (2020-11-25)

Expand All @@ -33,14 +37,14 @@

- adding textarea form control to be detect by form leave when set.
see https://github.com/atk4/ui/issues/1527
- Refactor arrow function.
- Refactor arrow function.

### version 1.16.3 (2020-09-30)

- create atk-date-picker vue component.
- Update query-builder
- allow date picker customization;

- add atk-date-picker to multiline component.


Expand Down Expand Up @@ -73,18 +77,18 @@
- panel service
- Fix issue with Querybuilder date.
- https://github.com/atk4/ui/issues/1420
- Package
- Package
- update package dependencies to latest release;
- note: css-loader v4 now require style-loader

PR: https://github.com/atk4/ui/pull/1430

### version 1.15.2 (2020-08-19)

- sidenav.plugin.js
- fix issue (1406) when using Control or Command click on a link (https://github.com/atk4/ui/issues/1406 )

- Package
- Package
- update package dependencies to latest release;
- fix eslint;

Expand All @@ -101,7 +105,7 @@

### version 1.14.3 (2020-07-13)
- Update dependencies.

### version 1.14.2 (2020-05-04)
- Build releases automatically on ui.agiletoolkit.org deploy

Expand All @@ -112,12 +116,12 @@
Add option to close event on window beforeUnload

### version 1.14.0 (2020-04-21)

- Add a jQuery plugin for layout that support side navigation.
- sidenav.plugin.js

### version 1.13.0 (2020-04-14)

- New PanelService.

### version 1.12.8 (2020-04-14)
Expand All @@ -135,7 +139,7 @@
### version 1.12.5 (2020-03-24)

- make sure $ var is assign to jQuery ($ = jQuery) in all module by adding missing import statement.

### version 1.12.4 (2020-03-18)

- Update dependencie package
Expand All @@ -153,7 +157,7 @@

### version 1.12.2 (2020-02-04)

- Fix https://github.com/atk4/ui/issues/902
- Fix https://github.com/atk4/ui/issues/902
Throwing error on server was not clearing api.data object, thus keeping
old value with new server request. This fix make sure api.data gets clear
on all server response, successful or not.
Expand All @@ -165,21 +169,21 @@

### version 1.12.0 (2019-11-06)

- add table-dropdown-helper.js
- add table-dropdown-helper.js
Utlity to dipslay Fomantic ui drodown as a table column.

### version 1.11.0 (2019-10-24)

- Add DataService.
- Add DataService.
Enable usage of web storage: local or session.
- Update atk.reloadView jQuery plugin.
Can include web storage in api request,
Possible to set specific Fomantic api settings
- Update atk.ajaxExec jQuery plugin.
Can include web storage in api request,
Possible to set specific Fomantic api settings
- Update url.helpers
Possible to set specific Fomantic api settings

- Update url.helpers

Fix
- issue #487 - Avoid Multi modal
Expand All @@ -192,7 +196,7 @@ Fix
### version 1.9.1 (2019-10-06)

- fix issue where new row is added pressing Enter key in form.
- Add new option in order to add row automatically when tabbing out of
- Add new option in order to add row automatically when tabbing out of
the last column and last row.
- Add ability to execute javascript when adding or deleting a row.

Expand All @@ -217,29 +221,29 @@ the last column and last row.
### version 1.6.8

- Babel configuration.
- fix core.js warning during build.
- fix core.js warning during build.
- create-modal.plugin
- fix: now allow to pass css class name to create modal.
- fix: now allow to pass css class name to create modal.
Useful when need to create modal with full width for example.
- file-upload.plugin
- remove support for opening file dialog when input get focus. Because File dialog
will remove blur and focus input field again, this was causing the file dialog to open
multiple time. Now only open when input or button is clicked.

### version 1.6.7

- plugin.js
- fix: Prevent plugin from being create if a plugin method is called prior to the plugin
instantiation. Was causing unexpected result when plugin was create using a method call, since
there was no setting.
there was no setting.
- atkJsSearch plugin
- Now support initial display setup value.
- Add support for reloading page via window.location and not using ajax.
- Add support for reloading page via window.location and not using ajax.
- url.helpers, previously add-param.helpers
- Add new plugin function: atkRemoveParam.
- Add new plugin function: atkRemoveParam.
You can use this function for removing an url query parameter from an url string.
ex: $.atkRemoveParam('test.php?sort=2&id=3', 'sort') will output: test.php?id=3


### version 1.6.6

Expand Down Expand Up @@ -307,20 +311,20 @@ Maintenance release.
### version 1.3.8

- allow jQuery FormSerializer to accept _ char at beginning of input name. ex: _e-mail
- Check for FormSerializer to be present before extending it.
- Check for FormSerializer to be present before extending it.


### version 1.3.7

- allow jQuery FormSerializer to accept dash char in input name. ex: e-mail.
- allow jQuery FormSerializer to accept dash char in input name. ex: e-mail.

### version 1.3.6

- Add locutus library dependency for outputing js date using php format.
- use in Calendar.js formatter.
- Fix fileUpload plugin to handle click event
- use in Calendar.js formatter.
- Fix fileUpload plugin to handle click event
- allow to use click event after user cancel file upload open dialog using cancel button.
- fix fileUload plugin to find button eleemnt instead of direct setup.
- fix fileUload plugin to find button eleemnt instead of direct setup.
- now use this.$el.find... for multi jQuery compatibility.

### version 1.3.5
Expand All @@ -329,9 +333,9 @@ Maintenance release.
- Set top modal position value to 'absolute'
- this fix semantic.ui 2.3.2 modal positioning problem.
- Add esc key handler to document while modal are in service.
- this allow to close all open modal window using esc key one after the others.
- this allow to close all open modal window using esc key one after the others.
#### Changes in createModal
- Allow to pass a string icon value for closing icon.
- Allow to pass a string icon value for closing icon.

### version 1.3.4

Expand All @@ -349,11 +353,11 @@ Maintenance release.
### version 1.3.1

- Add more generic method JsSearch::setUrlArgs(arg, value) in favor of deprecared setSortArgs method.

### version 1.3.0

- add plugin, conditionalForm, to allow field to show or hide upon other field condition.
- add formService throughout the app.
- add formService throughout the app.
- Add PopupService in order to be able to load popup content dynamically via Callback.

### version 1.2.1
Expand All @@ -380,4 +384,4 @@ Maintenance release.
- add new function for exporting package version number;
```
atk.version()
```
```
Loading

0 comments on commit 11fe623

Please sign in to comment.