Skip to content
Snippets Groups Projects
Unverified Commit a2a3d517 authored by Nemanja Glumac's avatar Nemanja Glumac Committed by GitHub
Browse files

[E2E] Fix grep spec filtering (#26387)

* [E2E] Fix grep spec filtering

* Add undocumented `grepIntegrationFolder`
parent 097573bc
Branches
Tags
No related merge requests found
......@@ -147,7 +147,7 @@ jobs:
if: matrix.edition == 'oss'
run: |
yarn run test-cypress-run \
--env grepTags=@OSS,grepFilterSpecs=true \
--env grepTags=@OSS \
--spec './frontend/test/metabase/scenarios/**/*.cy.spec.js'
env:
TERM: xterm
......
......@@ -33,8 +33,6 @@ const defaultConfig = {
// `on` is used to hook into various events Cypress emits
// `config` is the resolved Cypress config
require("@cypress/grep/src/plugin")(config);
/********************************************************************
** PREPROCESSOR **
********************************************************************/
......@@ -72,12 +70,19 @@ const defaultConfig = {
"frontend/test/snapshot-creators/qa-db.cy.snap.js";
}
// `grepIntegrationFolder` needs to point to the root!
// See: https://github.com/cypress-io/cypress/issues/24452#issuecomment-1295377775
config.env.grepIntegrationFolder = "../../../../";
config.env.grepFilterSpecs = true;
config.env.HAS_ENTERPRISE_TOKEN = hasEnterpriseToken;
config.env.HAS_SNOWPLOW_MICRO = hasSnowplowMicro;
config.env.SNOWPLOW_MICRO_URL = snowplowMicroUrl;
config.env.SOURCE_VERSION = sourceVersion;
config.env.TARGET_VERSION = targetVersion;
require("@cypress/grep/src/plugin")(config);
return config;
},
supportFile: "frontend/test/__support__/e2e/cypress.js",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment