Skip to content
This repository has been archived by the owner on Dec 27, 2023. It is now read-only.

Commit

Permalink
fix(Felamimail/e2etest): fix timing problems
Browse files Browse the repository at this point in the history
Change-Id: I56e12aa3387239759a083c5aa0671edeec8c7d5a
Reviewed-on: http://gerrit.tine20.com/customers/18505
Tested-by: Jenkins CI (http://ci.tine20.com/) <tine20-jenkins@metaways.de>
Reviewed-by: Philipp Schüle <p.schuele@metaways.de>
  • Loading branch information
Christian Feitl authored and pschuele committed Nov 26, 2020
1 parent 328b566 commit 8de32f3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions tests/e2etests/src/lib/browser.js
Expand Up @@ -92,15 +92,13 @@ module.exports = {
+ appName + ' to "' + value + '"');

await page.click('.x-btn-text.tine-grid-row-action-icon.renderer_accountUserIcon');
await page.waitFor(2000);
const frame = await expect(page).toMatchElement('.x-menu.x-menu-floating.x-layer', {visible: true});
await expect(frame).toClick('.x-menu-item-icon.action_adminMode');
const preferencePopup = await this.getNewWindow();
await preferencePopup.waitFor(() => document.querySelector('.ext-el-mask'));
await preferencePopup.waitFor(() => !document.querySelector('.ext-el-mask'));
await preferencePopup.waitForSelector('.x-tree-node');
//wait for finish load dialog
await expect(preferencePopup).toMatchElement('input[name=timezone]');
await expect(preferencePopup).toClick('span', {text: appName});
await preferencePopup.waitFor(1000);

// change setting to YES
await expect(preferencePopup).toMatchElement('input[name=' + preference + ']');
Expand Down
2 changes: 1 addition & 1 deletion tests/e2etests/src/test/Felamimail/message.test.js
Expand Up @@ -102,7 +102,7 @@ describe('message', () => {
});

// skip... is to unstable
describe.skip('email note preference', () => {
describe('email note preference', () => {
test('open Felamimail settings and set note=yes', async () => {
await expect(page).toClick('span', {text: process.env.TEST_BRANDING_TITLE});
await expect(page).toClick('.x-menu-item-text', {text: 'E-Mail'});
Expand Down

0 comments on commit 8de32f3

Please sign in to comment.