test(ui): gate cloud-only e2e specs via isCloud()

This commit is contained in:
Pablo F.G
2026-07-20 15:30:30 +02:00
parent 0ec2b289a7
commit 9b4c4141d9
2 changed files with 5 additions and 2 deletions
+2 -1
View File
@@ -4,8 +4,9 @@ import { makeSuffix } from "../helpers";
import { SignUpPage } from "../sign-up/sign-up-page";
import { SignInPage } from "../sign-in-base/sign-in-base-page";
import { UserProfilePage } from "../profile/profile-page";
import { isCloud } from "@/lib/shared/env";
const isCloudEnv = process.env.NEXT_PUBLIC_IS_CLOUD_ENV === "true";
const isCloudEnv = isCloud();
test.describe("New user invitation", () => {
let invitationsPage: InvitationsPage;
+3 -1
View File
@@ -1,4 +1,6 @@
import { test } from "@playwright/test";
import { isCloud } from "@/lib/shared/env";
import {
ProvidersPage,
AWSProviderData,
@@ -281,7 +283,7 @@ test.describe("Add Provider", () => {
// so this test must never run in the OSS CI. Gate explicitly on the
// Cloud env flag instead of relying on the org env vars being absent.
test.skip(
process.env.NEXT_PUBLIC_IS_CLOUD_ENV !== "true",
!isCloud(),
"AWS Organizations multi-account onboarding is a Cloud-only feature",
);