fix: Fixes workflow Applitools Cypress (#28566)

This commit is contained in:
Geido
2024-05-20 16:32:31 +03:00
committed by GitHub
parent 389d8b5b5d
commit e954360eec
7 changed files with 11 additions and 5 deletions

View File

@@ -212,7 +212,7 @@ cypress-run-applitools() {
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 --spec "cypress/e2e/*/**/*.applitools.test.ts" --browser "$browser" --headless $cypress --spec "cypress/applitools/**/*" --browser "$browser" --headless
say "::group::Flask log for default run" say "::group::Flask log for default run"
cat "$flasklog" cat "$flasklog"

View File

@@ -65,8 +65,11 @@ export default eyesPlugin(
return require('./cypress/plugins/index.js')(on, config); return require('./cypress/plugins/index.js')(on, config);
}, },
baseUrl: 'http://localhost:8088', baseUrl: 'http://localhost:8088',
excludeSpecPattern: ['**/*.applitools.test.ts'], excludeSpecPattern: [],
specPattern: ['cypress/e2e/**/*.{js,jsx,ts,tsx}'], specPattern: [
'cypress/e2e/**/*.{js,jsx,ts,tsx}',
'cypress/applitools/**/*.{js,jsx,ts,tsx}',
],
}, },
}), }),
); );

View File

@@ -18,7 +18,7 @@
*/ */
import { WORLD_HEALTH_DASHBOARD } from 'cypress/utils/urls'; import { WORLD_HEALTH_DASHBOARD } from 'cypress/utils/urls';
import { waitForChartLoad } from 'cypress/utils'; import { waitForChartLoad } from 'cypress/utils';
import { WORLD_HEALTH_CHARTS } from './utils'; import { WORLD_HEALTH_CHARTS } from '../e2e/dashboard/utils';
describe('Dashboard load', () => { describe('Dashboard load', () => {
beforeEach(() => { beforeEach(() => {

View File

@@ -16,7 +16,10 @@
* specific language governing permissions and limitations * specific language governing permissions and limitations
* under the License. * 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', () => { describe('explore view', () => {
beforeEach(() => { beforeEach(() => {