mirror of
https://github.com/apache/superset.git
synced 2026-05-12 19:35:17 +00:00
ci(embedded-e2e): build SDK and configure test environment
- Add a build-embedded-sdk step to bashlib.sh and wire it into the superset-playwright and superset-e2e workflows so the SDK bundle is compiled before Playwright runs. - Set SUPERSET_FEATURE_EMBEDDED_SUPERSET=true via workflow env so the feature flag only affects Playwright jobs. Setting it in the shared integration test config breaks unrelated Python tests because the security manager's guest-user paths access g.user through paths that most tests don't mock. - Add CORS for localhost:9000 and TALISMAN_ENABLED=False to the integration test config. Talisman defaults to X-Frame-Options: SAMEORIGIN, which blocks the embedded dashboard from rendering inside an iframe hosted on a different port.
This commit is contained in:
@@ -78,6 +78,15 @@ FEATURE_FLAGS = {
|
||||
|
||||
WEBDRIVER_BASEURL = "http://0.0.0.0:8081/"
|
||||
|
||||
# Enable CORS for embedded dashboard E2E tests (test app on port 9000)
|
||||
ENABLE_CORS = True
|
||||
CORS_OPTIONS: dict = {
|
||||
"origins": [
|
||||
"http://localhost:9000",
|
||||
],
|
||||
"supports_credentials": True,
|
||||
}
|
||||
|
||||
|
||||
def GET_FEATURE_FLAGS_FUNC(ff): # noqa: N802
|
||||
ff_copy = copy(ff)
|
||||
@@ -86,6 +95,7 @@ def GET_FEATURE_FLAGS_FUNC(ff): # noqa: N802
|
||||
|
||||
|
||||
TESTING = True
|
||||
TALISMAN_ENABLED = False
|
||||
WTF_CSRF_ENABLED = False
|
||||
|
||||
FAB_ROLES = {"TestRole": [["Security", "menu_access"], ["List Users", "menu_access"]]}
|
||||
|
||||
Reference in New Issue
Block a user