Skip to content

Commit

Permalink
fix: amend config to secretsmanager
Browse files Browse the repository at this point in the history
  • Loading branch information
sdh100shaun committed Jul 22, 2024
1 parent 587051d commit 4771484
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package org.dvsa.testing.framework.Journeys.licence;

import com.typesafe.config.Config;
import apiCalls.Utils.generic.SecretsManager;
import org.dvsa.testing.framework.Injectors.World;
import org.dvsa.testing.framework.Utils.Generic.UniversalActions;
import org.dvsa.testing.framework.pageObjects.BasePage;
Expand Down Expand Up @@ -124,11 +124,11 @@ public void selectFee() {
}

public void customerPaymentModule() {
Config config = world.configuration.config;

waitForTextToBePresent("Card Number*");
waitAndEnterText("//*[@id='scp_cardPage_cardNumber_input']", SelectorType.XPATH, config.getString("cardNumber"));
waitAndEnterText("//*[@id='scp_cardPage_expiryDate_input']", SelectorType.XPATH, config.getString("cardExpiryMonth"));
waitAndEnterText("//*[@id='scp_cardPage_expiryDate_input2']", SelectorType.XPATH, config.getString("cardExpiryYear"));
waitAndEnterText("//*[@id='scp_cardPage_cardNumber_input']", SelectorType.XPATH, SecretsManager.getSecret("cardNumber"));
waitAndEnterText("//*[@id='scp_cardPage_expiryDate_input']", SelectorType.XPATH, SecretsManager.getSecret("cardExpiryMonth"));
waitAndEnterText("//*[@id='scp_cardPage_expiryDate_input2']", SelectorType.XPATH, SecretsManager.getSecret("cardExpiryYear"));
waitAndEnterText("//*[@id='scp_cardPage_csc_input']", SelectorType.XPATH, "123");
if (isElementPresent("scp_cardPage_storedCard_payment_input", SelectorType.ID)) {
click("scp_cardPage_storedCard_payment_input", SelectorType.ID);
Expand Down

0 comments on commit 4771484

Please sign in to comment.