Removed android specific conditions
This commit is contained in:
parent
2dbf43c46b
commit
fa6057e070
|
@ -291,11 +291,6 @@ describe('E2E Encryption', () => {
|
||||||
.withTimeout(2000);
|
.withTimeout(2000);
|
||||||
});
|
});
|
||||||
it('should reset e2e key', async () => {
|
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 navigateSecurityPrivacy();
|
||||||
await element(by.id('security-privacy-view-e2e-encryption')).tap();
|
await element(by.id('security-privacy-view-e2e-encryption')).tap();
|
||||||
await waitFor(element(by.id('e2e-encryption-security-view')))
|
await waitFor(element(by.id('e2e-encryption-security-view')))
|
||||||
|
@ -332,14 +327,6 @@ describe('E2E Encryption', () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('Persist Banner', () => {
|
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 () => {
|
it('check save banner', async () => {
|
||||||
await checkServer(data.server);
|
await checkServer(data.server);
|
||||||
await checkBanner();
|
await checkBanner();
|
||||||
|
|
|
@ -173,7 +173,7 @@ describe('Join public room', () => {
|
||||||
.withTimeout(10000);
|
.withTimeout(10000);
|
||||||
await waitFor(element(by.id(`rooms-list-view-item-${room}`)))
|
await waitFor(element(by.id(`rooms-list-view-item-${room}`)))
|
||||||
.toBeNotVisible()
|
.toBeNotVisible()
|
||||||
.withTimeout(60000); // flaky on Android
|
.withTimeout(60000);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
@ -29,9 +29,9 @@ const navToLanguage = async () => {
|
||||||
describe('i18n', () => {
|
describe('i18n', () => {
|
||||||
describe('OS language', () => {
|
describe('OS language', () => {
|
||||||
it("OS set to 'en' and proper translate to 'en'", async () => {
|
it("OS set to 'en' and proper translate to 'en'", async () => {
|
||||||
if (device.getPlatform() === 'android') {
|
// if (device.getPlatform() === 'android') {
|
||||||
return; // FIXME: Passing language with launch parameters doesn't work with Android
|
// return; // FIXME: Passing language with launch parameters doesn't work with Android
|
||||||
}
|
// }
|
||||||
await device.launchApp({
|
await device.launchApp({
|
||||||
...defaultLaunchArgs,
|
...defaultLaunchArgs,
|
||||||
languageAndLocale: {
|
languageAndLocale: {
|
||||||
|
@ -47,9 +47,9 @@ describe('i18n', () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
it("OS set to unavailable language and fallback to 'en'", async () => {
|
it("OS set to unavailable language and fallback to 'en'", async () => {
|
||||||
if (device.getPlatform() === 'android') {
|
// if (device.getPlatform() === 'android') {
|
||||||
return; // FIXME: Passing language with launch parameters doesn't work with Android
|
// return; // FIXME: Passing language with launch parameters doesn't work with Android
|
||||||
}
|
// }
|
||||||
await device.launchApp({
|
await device.launchApp({
|
||||||
...defaultLaunchArgs,
|
...defaultLaunchArgs,
|
||||||
languageAndLocale: {
|
languageAndLocale: {
|
||||||
|
|
|
@ -53,9 +53,7 @@ describe('Threads', () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should have open emoji button', async () => {
|
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 () => {
|
it('should have message input', async () => {
|
||||||
|
|
|
@ -36,10 +36,10 @@ async function clearCache() {
|
||||||
}
|
}
|
||||||
|
|
||||||
async function waitForLoading() {
|
async function waitForLoading() {
|
||||||
if (device.getPlatform() === 'android') {
|
// if (device.getPlatform() === 'android') {
|
||||||
await sleep(10000);
|
// await sleep(10000);
|
||||||
return; // FIXME: Loading indicator doesn't animate properly on android
|
// return; // FIXME: Loading indicator doesn't animate properly on android
|
||||||
}
|
// }
|
||||||
await waitFor(element(by.id('loading-image')))
|
await waitFor(element(by.id('loading-image')))
|
||||||
.toBeVisible()
|
.toBeVisible()
|
||||||
.withTimeout(5000);
|
.withTimeout(5000);
|
||||||
|
@ -125,10 +125,6 @@ describe('Room', () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should load newer and older messages', async () => {
|
it('should load newer and older messages', async () => {
|
||||||
// TODO: couldn't make it work on Android :(
|
|
||||||
if (device.getPlatform() === 'android') {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
let found = false;
|
let found = false;
|
||||||
while (!found) {
|
while (!found) {
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in New Issue