Dashboard Schema V2: E2E setup (#99843)
* basic setup * update CODEOWNERS * update name * add temp test that ensures we are loading schema V2 json in the UI * update language * test with yarn cache and combine steps * revert combine * remove commented out code * Run current dashboard suite, make workflow optional * make job always succeed * Remove temp v2 suite * don't run on draft PRs * command for old arch
This commit is contained in:
@@ -50,4 +50,9 @@ beforeEach(() => {
|
||||
cy.logToConsole('disabling dashboardScene feature toggle in localstorage');
|
||||
cy.setLocalStorage('grafana.featureToggles', 'dashboardScene=false');
|
||||
}
|
||||
|
||||
if (Cypress.env('useV2DashboardsAPI')) {
|
||||
cy.logToConsole('enabling v2 dashboards API in localstorage');
|
||||
cy.setLocalStorage('grafana.featureToggles', 'useV2DashboardsAPI=true');
|
||||
}
|
||||
});
|
||||
|
||||
@@ -28,6 +28,7 @@ declare -A env=(
|
||||
testFilesForSingleSuite="*.spec.ts"
|
||||
rootForEnterpriseSuite="./e2e/extensions-suite"
|
||||
rootForOldArch="./e2e/old-arch"
|
||||
rootForDashboardsSchemaV2="./e2e/dashboards-suite"
|
||||
|
||||
declare -A cypressConfig=(
|
||||
[screenshotsFolder]=./e2e/"${args[0]}"/screenshots
|
||||
@@ -111,6 +112,24 @@ case "$1" in
|
||||
cypressConfig[video]=${args[1]}
|
||||
env[DISABLE_SCENES]=true
|
||||
;;
|
||||
"dashboards-schema-v2")
|
||||
env[useV2DashboardsAPI]=true
|
||||
cypressConfig[specPattern]=$rootForDashboardsSchemaV2/$testFilesForSingleSuite
|
||||
cypressConfig[video]=false
|
||||
case "$2" in
|
||||
"debug")
|
||||
echo -e "Debug mode"
|
||||
env[SLOWMO]=1
|
||||
PARAMS="--no-exit"
|
||||
enterpriseSuite=$(basename "${args[2]}")
|
||||
;;
|
||||
"dev")
|
||||
echo "Dev mode"
|
||||
CMD="cypress open"
|
||||
enterpriseSuite=$(basename "${args[2]}")
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
"enterprise-smtp")
|
||||
env[SMTP_PLUGIN_ENABLED]=true
|
||||
cypressConfig[specPattern]=./e2e/extensions/enterprise/smtp-suite/$testFilesForSingleSuite
|
||||
|
||||
Reference in New Issue
Block a user