Skip to content

Commit 965b830

Browse files
Merge branch 'development' into issue-627
2 parents 9b28024 + 90d5246 commit 965b830

35 files changed

+4525
-202
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ cypress/integration/examples
1111
cypress/integration/localhost*
1212
cypress/plugins
1313
cypress.env.json
14+
grunt

.travis.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,20 @@ matrix:
1818
env: TEST_SUITE=Wraith_Visual_Regression_Testing WRAITH_FAIL=5
1919
script: "./bin/wraith.sh"
2020
- name: Cypress
21+
if: type IN (pull_request)
2122
language: node_js
2223
node_js:
2324
- 10.8
2425
script:
2526
- docker-compose -f docker-compose.travis.yml up -d
2627
- chmod +x ./bin/run-e2e-tests.sh ./bin/wp-init.sh && ./bin/wp-init.sh && ./bin/run-e2e-tests.sh
28+
- name: Cypress Gutenberg
29+
language: node_js
30+
node_js:
31+
- 10.8
32+
script:
33+
- docker-compose -f docker-compose.travis.yml up -d
34+
- chmod +x ./bin/run-e2e-tests-gutenberg.sh ./bin/wp-init.sh && ./bin/wp-init.sh && ./bin/run-e2e-tests-gutenberg.sh
2735
allow_failures:
2836
- env: TEST_SUITE=Wraith_Visual_Regression_Testing WRAITH_FAIL=5
2937
branches:

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
11

2+
### v3.4.0 - 2020-02-13
3+
**Changes:**
4+
* [Feat] Support for authentication for JSON import
5+
* [Feat] New chart type: Bubble
6+
* [Feat] Combine one-time import and schedule import into a single control for an online .csv file import
7+
* [Feat] Add support for annotations and other roles
8+
* [Feat] For every chart show the last updated date and any error that exists
9+
* [Feat] Tested up to WP 5.3
10+
* [Fix] When new data is imported using csv/url, the manual editor still show old data
11+
* [Fix] Having SCRIPT_DEBUG on causes issues in real time update of charts
12+
* [Fix] Table chart: Error appears when trying to import from JSON
13+
* [Fix] PHP Fatal error: Uncaught Error: Cannot unset string offsets
14+
* [Fix] Long responsive table can overflow on smaller screens
15+
216
### v3.3.4 - 2019-11-15
317
**Changes:**
418
* Fix issue with table chart not loading in the block editor

bin/run-e2e-tests-gutenberg.sh

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/usr/bin/env bash
2+
3+
if [[ "$TRAVIS" == "true" ]]; then
4+
npm install --only=dev --prefix ./cypress/
5+
composer install --no-dev
6+
fi
7+
8+
wp_host='localhost'
9+
windows=`echo $OSTYPE | grep -i -e "win" -e "msys" -e "cygw" | wc -l`
10+
args='-it';
11+
if [[ $windows -gt 0 ]]; then
12+
wp_host=`docker-machine ip`
13+
args=''
14+
fi
15+
16+
# exit on error
17+
set -e
18+
19+
export CYPRESS_HOST=$wp_host
20+
21+
docker exec $args visualizer_wordpress wp --quiet plugin deactivate classic-editor
22+
export CYPRESS_SPEC_TO_RUN="free-gutenberg.js"
23+
npm run cypress:run

bin/run-e2e-tests.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,4 @@ npm run cypress:run
2525
# test free - sources
2626
export CYPRESS_SPEC_TO_RUN="free-sources.js"
2727
npm run cypress:run
28+

classes/Visualizer/Gutenberg/Block.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ public function enqueue_gutenberg_scripts() {
102102
'charts' => Visualizer_Module_Admin::_getChartTypesLocalized(),
103103
'adminPage' => menu_page_url( 'visualizer', false ),
104104
'sqlTable' => $table_col_mapping,
105+
'chartsPerPage' => defined( 'TI_CYPRESS_TESTING' ) ? 20 : 6,
105106
);
106107
wp_localize_script( 'visualizer-gutenberg-block', 'visualizerLocalize', $translation_array );
107108

classes/Visualizer/Gutenberg/build/block.css

Lines changed: 239 additions & 1 deletion
Large diffs are not rendered by default.

classes/Visualizer/Gutenberg/build/block.js

Lines changed: 2479 additions & 69 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

classes/Visualizer/Gutenberg/build/handsontable.css

Lines changed: 1302 additions & 3 deletions
Large diffs are not rendered by default.

classes/Visualizer/Gutenberg/build/handsontable.js

Lines changed: 25 additions & 43 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)