Removed android specific conditions

This commit is contained in:
Diego Mello 2023-02-23 10:55:13 -03:00
parent 2dbf43c46b
commit fa6057e070
5 changed files with 12 additions and 31 deletions

View File

@ -291,11 +291,6 @@ describe('E2E Encryption', () => {
.withTimeout(2000);
});
it('should reset e2e key', async () => {
// FIXME: too flaky on Android for now... let's fix it later
// It's also flaky on iOS, but it works from time to time
if (device.getPlatform() === 'android') {
return;
}
await navigateSecurityPrivacy();
await element(by.id('security-privacy-view-e2e-encryption')).tap();
await waitFor(element(by.id('e2e-encryption-security-view')))
@ -332,14 +327,6 @@ describe('E2E Encryption', () => {
});
describe('Persist Banner', () => {
beforeAll(async () => {
// reinstall the app because of one flaky test above
if (device.getPlatform() === 'android') {
await device.launchApp({ permissions: { notifications: 'YES' }, delete: true });
await navigateToLogin();
await login(user.username, user.password);
}
});
it('check save banner', async () => {
await checkServer(data.server);
await checkBanner();

View File

@ -173,7 +173,7 @@ describe('Join public room', () => {
.withTimeout(10000);
await waitFor(element(by.id(`rooms-list-view-item-${room}`)))
.toBeNotVisible()
.withTimeout(60000); // flaky on Android
.withTimeout(60000);
});
});
});

View File

@ -29,9 +29,9 @@ const navToLanguage = async () => {
describe('i18n', () => {
describe('OS language', () => {
it("OS set to 'en' and proper translate to 'en'", async () => {
if (device.getPlatform() === 'android') {
return; // FIXME: Passing language with launch parameters doesn't work with Android
}
// if (device.getPlatform() === 'android') {
// return; // FIXME: Passing language with launch parameters doesn't work with Android
// }
await device.launchApp({
...defaultLaunchArgs,
languageAndLocale: {
@ -47,9 +47,9 @@ describe('i18n', () => {
});
it("OS set to unavailable language and fallback to 'en'", async () => {
if (device.getPlatform() === 'android') {
return; // FIXME: Passing language with launch parameters doesn't work with Android
}
// if (device.getPlatform() === 'android') {
// return; // FIXME: Passing language with launch parameters doesn't work with Android
// }
await device.launchApp({
...defaultLaunchArgs,
languageAndLocale: {

View File

@ -53,9 +53,7 @@ describe('Threads', () => {
});
it('should have open emoji button', async () => {
if (device.getPlatform() === 'android') {
await expect(element(by.id('messagebox-open-emoji'))).toExist();
}
await expect(element(by.id('messagebox-open-emoji'))).toExist();
});
it('should have message input', async () => {

View File

@ -36,10 +36,10 @@ async function clearCache() {
}
async function waitForLoading() {
if (device.getPlatform() === 'android') {
await sleep(10000);
return; // FIXME: Loading indicator doesn't animate properly on android
}
// if (device.getPlatform() === 'android') {
// await sleep(10000);
// return; // FIXME: Loading indicator doesn't animate properly on android
// }
await waitFor(element(by.id('loading-image')))
.toBeVisible()
.withTimeout(5000);
@ -125,10 +125,6 @@ describe('Room', () => {
});
it('should load newer and older messages', async () => {
// TODO: couldn't make it work on Android :(
if (device.getPlatform() === 'android') {
return;
}
let found = false;
while (!found) {
try {