Skip to content

Commit 8c90f62

Browse files
committed
Address review comments
Signed-off-by: Nandini Chandra <[email protected]>
1 parent e9c6b91 commit 8c90f62

File tree

1 file changed

+11
-2
lines changed
  • cypress/e2e/tests/administration/source-platform

1 file changed

+11
-2
lines changed

cypress/e2e/tests/administration/source-platform/crud.test.ts

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import { CredentialsSourceControlUsername } from "../../../models/administration
2121
import { SourcePlatform } from "../../../models/administration/source-platform/source-platform";
2222
import { CredentialType, UserCredentials } from "../../../types/constants";
2323
import { successAlertMessage } from "../../../views/common.view";
24+
import * as selectors from "../../../views/source-platform.view";
2425

2526
let cloudFoundryCreds: Array<CredentialsSourceControlUsername> = [];
2627

@@ -76,11 +77,19 @@ describe(["@tier2"], "CRUD operations on Cloud Foundry Source platform", () => {
7677

7778
const newURL = "https://api.bosh-updated-lite.com";
7879
platform.edit({ url: newURL });
79-
exists(newName);
80+
cy.get(selectors.url)
81+
.invoke("text")
82+
.then((text) => {
83+
expect(text.trim()).to.equal(newURL);
84+
});
8085

8186
const newCreds = cloudFoundryCreds[1].name;
8287
platform.edit({ credentials: newCreds });
83-
exists(newName);
88+
cy.get(selectors.credentials)
89+
.invoke("text")
90+
.then((text) => {
91+
expect(text.trim()).to.equal(newCreds);
92+
});
8493

8594
platform.delete();
8695
checkSuccessAlert(

0 commit comments

Comments
 (0)