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

Commit

Permalink
fix(e2etests): wait for selector
Browse files Browse the repository at this point in the history
Change-Id: Iad6ce079575c9bbf168a45bb31cf4959c1348d34
Reviewed-on: http://gerrit.tine20.com/customers/18669
Tested-by: Jenkins CI (http://ci.tine20.com/) <tine20-jenkins@metaways.de>
Reviewed-by: Christian Feitl <c.feitl@metaways.de>
  • Loading branch information
Christian Feitl committed Dec 9, 2020
1 parent fb20bb6 commit c93dcd1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions tests/e2etests/src/lib/browser.js
Expand Up @@ -91,6 +91,7 @@ module.exports = {
console.log('setting preference ' + preference + ' of app '
+ appName + ' to "' + value + '"');

await page.waitForSelector('.x-btn-text.tine-grid-row-action-icon.renderer_accountUserIcon');
await page.click('.x-btn-text.tine-grid-row-action-icon.renderer_accountUserIcon');
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');
Expand Down
2 changes: 1 addition & 1 deletion tests/e2etests/src/test/Felamimail/message.test.js
Expand Up @@ -110,7 +110,7 @@ describe('email note preference', () => {
await lib.setPreference(page,'E-Mail', 'autoAttachNote', 'ja');
});
test('open compose dialog and check button pressed', async () => {
await page.waitFor(2000);
await page.waitFor(3000);
let popupWindow = await lib.getEditDialog('Verfassen');
await popupWindow.waitForSelector('.x-btn.x-btn-text-icon.x-btn-pressed');
await popupWindow.close();
Expand Down

0 comments on commit c93dcd1

Please sign in to comment.