Skip to content

Commit

Permalink
po: added for confirm page
Browse files Browse the repository at this point in the history
Signed-off-by: Jakub Mucha <[email protected]>
  • Loading branch information
drptbl committed Dec 6, 2020
1 parent 029b66d commit 99b6637
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions pages/metamask/notification-page.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,16 @@ const nextButton = `${notificationPage} .permissions-connect-choose-account__bot
const permissionsPage = '.permissions-connect';
const connectButton = `${permissionsPage} .permission-approval-container__footers button:nth-child(2)`;

const confirmPageHeader = `${notificationPage} .confirm-page-container-header`;
const confirmPageContent = `${notificationPage} .confirm-page-container-content`;
const confirmPageGasFeeSection = `${confirmPageContent} .confirm-page-container-content__gas-fee`;
const gasFeeLabel = `${confirmPageGasFeeSection} .currency-display-component__text`;
const gasFeeInput = `${confirmPageGasFeeSection} .advanced-gas-inputs__gas-edit-row:nth-child(1) .advanced-gas-inputs__gas-edit-row__input`;
const gasLimitInput = `${confirmPageGasFeeSection} .advanced-gas-inputs__gas-edit-row:nth-child(2) .advanced-gas-inputs__gas-edit-row__input`;
const totalLabel = `${confirmPageContent} div:nth-child(2) > .confirm-detail-row .currency-display-component__text`;
const rejectButton = `${confirmPageContent} [data-testid="page-container-footer-cancel"]`;
const confirmButton = `${confirmPageContent} [data-testid="page-container-footer-next"]`;

export const notificationPageElements = {
notificationPage,
nextButton,
Expand All @@ -13,3 +23,16 @@ export const permissionsPageElements = {
permissionsPage,
connectButton,
};

export const confirmPageElements = {
notificationPage,
confirmPageHeader,
confirmPageContent,
confirmPageGasFeeSection,
gasFeeLabel,
gasFeeInput,
gasLimitInput,
totalLabel,
rejectButton,
confirmButton,
};

0 comments on commit 99b6637

Please sign in to comment.