-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move QR code modal methods to their own page object
- Loading branch information
1 parent
cbb834b
commit c27d02a
Showing
4 changed files
with
27 additions
and
16 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import Matchers from '../../utils/Matchers'; | ||
import Gestures from '../../utils/Gestures'; | ||
import { SendLinkViewSelectorsIDs } from '../../selectors/SendLinkView.selectors'; | ||
|
||
class PaymentRequestQrModal { | ||
get container() { | ||
return Matchers.getElementByID(SendLinkViewSelectorsIDs.QR_MODAL); | ||
} | ||
|
||
get closeButton() { | ||
return Matchers.getElementByID(SendLinkViewSelectorsIDs.CLOSE_QR_MODAL_BUTTON); | ||
} | ||
|
||
async tapCloseButton() { | ||
await Gestures.waitAndTap(this.closeButton); | ||
} | ||
} | ||
|
||
export default new PaymentRequestQrModal(); |
File renamed without changes.
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