mirror of https://github.com/apache/superset.git
build: enable Cypress tests for visualizations (#10206)
This commit is contained in:
parent
9664705435
commit
538f7e0f73
|
@ -189,7 +189,7 @@ cypress-run-all() {
|
||||||
nohup flask run --no-debugger -p $port > "$flasklog" 2>&1 < /dev/null &
|
nohup flask run --no-debugger -p $port > "$flasklog" 2>&1 < /dev/null &
|
||||||
local flaskProcessId=$!
|
local flaskProcessId=$!
|
||||||
|
|
||||||
cypress-run "*/*"
|
cypress-run "*/**/*"
|
||||||
|
|
||||||
# Upload code coverage separately so each page can have separate flags
|
# Upload code coverage separately so each page can have separate flags
|
||||||
# -c will clean existing coverage reports, -F means add flags
|
# -c will clean existing coverage reports, -F means add flags
|
||||||
|
|
|
@ -57,7 +57,10 @@ describe('Visualization > Bubble', () => {
|
||||||
cy.route('POST', '/superset/explore_json/**').as('getJson');
|
cy.route('POST', '/superset/explore_json/**').as('getJson');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should work', () => {
|
// Number of circles are pretty unstable when there are a lot of circles
|
||||||
|
// Since main functionality is already covered in fitler test below,
|
||||||
|
// skip this test untill we find a solution.
|
||||||
|
it.skip('should work', () => {
|
||||||
verify(BUBBLE_FORM_DATA);
|
verify(BUBBLE_FORM_DATA);
|
||||||
// number of circles = 214 rows
|
// number of circles = 214 rows
|
||||||
cy.get('.chart-container svg .nv-point-clips circle').should(
|
cy.get('.chart-container svg .nv-point-clips circle').should(
|
||||||
|
|
|
@ -103,6 +103,7 @@ describe('Visualization > Table', () => {
|
||||||
it('Test table with columns and row limit', () => {
|
it('Test table with columns and row limit', () => {
|
||||||
const formData = {
|
const formData = {
|
||||||
...VIZ_DEFAULTS,
|
...VIZ_DEFAULTS,
|
||||||
|
query_mode: 'raw',
|
||||||
all_columns: ['name'],
|
all_columns: ['name'],
|
||||||
metrics: [],
|
metrics: [],
|
||||||
row_limit: 10,
|
row_limit: 10,
|
||||||
|
@ -117,6 +118,7 @@ describe('Visualization > Table', () => {
|
||||||
|
|
||||||
const formData = {
|
const formData = {
|
||||||
...VIZ_DEFAULTS,
|
...VIZ_DEFAULTS,
|
||||||
|
query_mode: 'raw',
|
||||||
all_columns: ['name', 'state', 'ds', 'num'],
|
all_columns: ['name', 'state', 'ds', 'num'],
|
||||||
metrics: [],
|
metrics: [],
|
||||||
row_limit: limit,
|
row_limit: limit,
|
||||||
|
|
Loading…
Reference in New Issue