-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
47682ae
commit fc67f17
Showing
11 changed files
with
92 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import { BillPaymentType } from "../types/custom"; | ||
import BasePage from "./base.page"; | ||
import { formAmountElementByLabel, formInputElementByLabel } from "./common.element"; | ||
|
||
class BillsPage extends BasePage { | ||
|
||
private get sendPaymentButton() { return $("[value='Send Payment']") } | ||
|
||
get billPaymentMessage() { return $("//div[@ng-show='showResult']/p[1]"); } | ||
|
||
async billPayment(options: BillPaymentType) { | ||
await this.setData(formInputElementByLabel("Payee Name"), options.PayeeName); | ||
await this.setData(formInputElementByLabel("Address"), options.Address); | ||
await this.setData(formInputElementByLabel("City"), options.City); | ||
await this.setData(formInputElementByLabel("State"), options.State); | ||
await this.setData(formInputElementByLabel("Zip Code"), options.ZipCode); | ||
await this.setData(formInputElementByLabel("Phone #"), options.PhoneNo); | ||
await this.setData(formInputElementByLabel("Account #"), options.AccountNumber); | ||
await this.setData(formInputElementByLabel("Verify Account #"), options.AccountNumber); | ||
await this.setData(formAmountElementByLabel("Amount"), options.Amount); | ||
await this.clickElement(this.sendPaymentButton); | ||
|
||
} | ||
|
||
} | ||
export default new BillsPage() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
|
||
export const formInputElementByLabel = (label: string) => $(`//b[text()='${label}:']/..//following-sibling::td/input`); | ||
|
||
export const formAmountElementByLabel = (label: string) => $(`//b[text()='${label}: $']/..//following-sibling::td/input`) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
Feature: File Upload | ||
|
||
Scenario: Test upload file | ||
Given I open herokuapp upload page | ||
Given I open heroku app upload page | ||
When I upload file | ||
Then I validate file is uploaded successfully |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters