Skip to content

Commit 0c4e0d1

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

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

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

Lines changed: 3 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,11 @@ 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).should("have.value", newURL);
8081

8182
const newCreds = cloudFoundryCreds[1].name;
8283
platform.edit({ credentials: newCreds });
83-
exists(newName);
84+
cy.get(selectors.credentials).should("have.value", newCreds);
8485

8586
platform.delete();
8687
checkSuccessAlert(

cypress/utils/utils.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,10 @@ export function clearInput(fieldID: string): void {
145145
cy.get(fieldID, { timeout: 2 * SEC }).clear();
146146
}
147147

148+
export function verifyInputValue(fieldID: string, expectedValue: string): void {
149+
cy.get(fieldID).invoke("val").should("equal", expectedValue);
150+
}
151+
148152
export function clickByText(
149153
fieldId: string,
150154
buttonText: string | RegExp,

0 commit comments

Comments
 (0)