Skip to content

Commit 1cf5e0f

Browse files
authored
test: fix e2e test case (#14275)
* test: fix update aad sso tab app * test: update
1 parent 9a4e300 commit 1cf5e0f

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

packages/tests/src/e2e/commonUtils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ export async function setAadManifestIdentifierUrisV3(
217217
) {
218218
const aadManifestPath = path.join(projectPath, "aad.manifest.json");
219219
const aadTemplate = await fs.readJson(aadManifestPath);
220-
aadTemplate.identifierUris = [identifierUri];
220+
aadTemplate.spa.redirectUris.push(identifierUri);
221221
await fs.writeJson(aadManifestPath, aadTemplate, { spaces: 4 });
222222
}
223223

packages/tests/src/e2e/solution/SSOTabE2ETestWithAADManifestEnabled.tests.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,7 @@ describe("SSO Tab with aad manifest enabled", () => {
8484
const aad = AadValidator.init(context, false, M365Login);
8585
await AadValidator.validate(aad);
8686

87-
const firstIdentifierUri =
88-
"api://first.com/291fc1b5-1146-4d33-b7b8-ec4c441b6b33";
87+
const firstIdentifierUri = "https://localhost:3000";
8988
await setAadManifestIdentifierUrisV3(projectPath, firstIdentifierUri);
9089

9190
{
@@ -99,8 +98,7 @@ describe("SSO Tab with aad manifest enabled", () => {
9998
await CliHelper.updateAadManifest(projectPath, "--env dev", env);
10099
await AadValidator.validate(aad, firstIdentifierUri);
101100

102-
const secondIdentifierUri =
103-
"api://second.com/291fc1b5-1146-4d33-b7b8-ec4c441b6b33";
101+
const secondIdentifierUri = "https://localhost:8000";
104102
await setAadManifestIdentifierUrisV3(projectPath, secondIdentifierUri);
105103

106104
// Only deploy aad manifest

0 commit comments

Comments
 (0)