-
-
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.
This PR cherry-picks #10055 Co-authored-by: SamuelSalas <samuel.salas.reyes@gmail.com>
- Loading branch information
1 parent
17c7246
commit 87bc107
Showing
13 changed files
with
92 additions
and
120 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
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 { | ||
ToastSelectorsIDs, | ||
ToastSelectorsText, | ||
} from '../../selectors/Modals/ToastModal.selectors'; | ||
import Gestures from '../../utils/Gestures'; | ||
import Matchers from '../../utils/Matchers'; | ||
|
||
class ToastModal { | ||
get container() { | ||
return Matchers.getElementByID(ToastSelectorsIDs.CONTAINER); | ||
} | ||
|
||
get notificationTitle() { | ||
return Matchers.getElementByID(ToastSelectorsIDs.NOTIFICATION_TITLE); | ||
} | ||
|
||
get toastCloseButton() { | ||
return Matchers.getElementByText(ToastSelectorsText.CLOSE_BUTTON); | ||
} | ||
|
||
async tapToastCloseButton() { | ||
await Gestures.waitAndTap(this.toastCloseButton); | ||
} | ||
} | ||
|
||
export default new ToastModal(); |
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,10 @@ | ||
import enContent from '../../../locales/languages/en.json'; | ||
|
||
export const ToastSelectorsText = { | ||
CLOSE_BUTTON: enContent.privacy_policy.toast_action_button, | ||
}; | ||
|
||
export const ToastSelectorsIDs = { | ||
CONTAINER: 'toast', | ||
NOTIFICATION_TITLE: 'notification-title', | ||
}; |
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
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
Oops, something went wrong.