Skip to content

Commit

Permalink
fix: Fixes workflow Applitools Cypress (#28566)
Browse files Browse the repository at this point in the history
  • Loading branch information
geido authored May 20, 2024
1 parent 389d8b5 commit e954360
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/bashlib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ cypress-run-applitools() {
nohup flask run --no-debugger -p $port >"$flasklog" 2>&1 </dev/null &
local flaskProcessId=$!

$cypress --spec "cypress/e2e/*/**/*.applitools.test.ts" --browser "$browser" --headless
$cypress --spec "cypress/applitools/**/*" --browser "$browser" --headless

say "::group::Flask log for default run"
cat "$flasklog"
Expand Down
7 changes: 5 additions & 2 deletions superset-frontend/cypress-base/cypress.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,11 @@ export default eyesPlugin(
return require('./cypress/plugins/index.js')(on, config);
},
baseUrl: 'http://localhost:8088',
excludeSpecPattern: ['**/*.applitools.test.ts'],
specPattern: ['cypress/e2e/**/*.{js,jsx,ts,tsx}'],
excludeSpecPattern: [],
specPattern: [
'cypress/e2e/**/*.{js,jsx,ts,tsx}',
'cypress/applitools/**/*.{js,jsx,ts,tsx}',
],
},
}),
);
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*/
import { WORLD_HEALTH_DASHBOARD } from 'cypress/utils/urls';
import { waitForChartLoad } from 'cypress/utils';
import { WORLD_HEALTH_CHARTS } from './utils';
import { WORLD_HEALTH_CHARTS } from '../e2e/dashboard/utils';

describe('Dashboard load', () => {
beforeEach(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@
* specific language governing permissions and limitations
* under the License.
*/
import { FORM_DATA_DEFAULTS, NUM_METRIC } from './visualizations/shared.helper';
import {
FORM_DATA_DEFAULTS,
NUM_METRIC,
} from '../e2e/explore/visualizations/shared.helper';

describe('explore view', () => {
beforeEach(() => {
Expand Down

0 comments on commit e954360

Please sign in to comment.