This commit is contained in:
Anant Bhasin 2021-05-27 02:44:05 +05:30
parent 6063add9ae
commit cdf64ab09b
4 changed files with 7 additions and 14 deletions

View File

@ -70,6 +70,7 @@ export default class Button extends React.PureComponent {
disabled && styles.disabled,
style
]}
accessibilityLabel={title}
{...otherProps}
>
{

View File

@ -1,5 +1,5 @@
// https://github.com/RocketChat/Rocket.Chat/blob/develop/definition/ITeam.ts
export const TEAM_TYPE = {
exports.TEAM_TYPE = {
PUBLIC: 0,
PRIVATE: 1
};

View File

@ -65,13 +65,13 @@ describe('E2E Encryption', () => {
});
it('should tap "How it works" and navigate', async() => {
await element(by.id('e2e-save-password-view-how-it-works').and(by.text('How It Works'))).tap();
await element(by.id('e2e-save-password-view-how-it-works').and(by.label('How It Works'))).tap();
await waitFor(element(by.id('e2e-how-it-works-view'))).toBeVisible().withTimeout(2000);
await tapBack();
});
it('should tap "Save my password" and close modal', async() => {
await element(by.id('e2e-save-password-view-saved-password').and(by.text('I Saved My E2E Password'))).tap();
await element(by.id('e2e-save-password-view-saved-password').and(by.label('I Saved My E2E Password'))).tap();
await waitFor(element(by.id('rooms-list-view'))).toBeVisible().withTimeout(2000);
});

View File

@ -188,18 +188,10 @@
"detox": {
"runner-config": "e2e/.mocharc.json",
"specs": "e2e/tests",
"devices": {
"emulator": {
"type": "android.emulator",
"device": {
"avdName": "Pixel_API_28_AOSP"
}
}
},
"apps": {
"android.experimental.play.debug": {
"type": "android.apk",
"binaryPath": "android/app/build/outputs/apk/debug/app-Experimental-Play-debug.apk",
"binaryPath": "android/app/build/outputs/apk/experimentalPlay/debug/app-Experimental-Play-debug.apk",
"build": "cd android && ./gradlew assembleExperimentalPlayDebug assembleExperimentalPlayAndroidTest -DtestBuildType=debug && cd .."
}
},
@ -235,13 +227,13 @@
}
},
"android.experimental.play.emu.debug": {
"device": "emu",
"device": "Pixel_API_28_AOSP",
"type": "android.emulator",
"binaryPath": "android/app/build/outputs/apk/experimentalPlay/debug/app-experimental-play-debug.apk",
"build": "cd android && ./gradlew app:assembleExperimentalPlayDebug app:assembleAndroidTest -DtestBuildType=debug && cd .."
},
"android.experimental.play.emu.release": {
"device": "emu",
"device": "Pixel_API_28_AOSP",
"type": "android.emulator",
"binaryPath": "android/app/build/outputs/apk/experimentalPlay/debug/app-experimental-play-release.apk",
"build": "cd android && ./gradlew app:assembleExperimentalPlayRelease app:assembleAndroidTest -DtestBuildType=release && cd .."