Skip to content

Commit

Permalink
TASK: Stabilize E2E tests for synving feature
Browse files Browse the repository at this point in the history
fixes: #3785
  • Loading branch information
grebaldi committed May 27, 2024
1 parent feb5b63 commit f8d5034
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Tests/IntegrationTests/Fixtures/1Dimension/syncing.e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,10 @@ async function prepareConflictBetweenAdminAndEditor(t) {
}

async function switchToRole(t, role) {
// We need to add a time buffer here, otherwise `t.useRole` might interrupt
// some long-running background process, errororing like this:
// > Error: NetworkError when attempting to fetch resource.
await t.wait(2000);
await t.useRole(role);
await waitForReact(30000);
await Page.goToPage('Home');
Expand All @@ -167,7 +171,7 @@ async function chooseDiscardAllAndFinishSynchronization(t) {
});
// For reasons unknown, we have to press the acknowledge button really
// hard for testcafe to realize our intent...
await t.wait(200);
await t.wait(500);
await t.click(Selector('#neos-DiscardDialog-Acknowledge'));

//
Expand Down
1 change: 1 addition & 0 deletions Tests/IntegrationTests/pageModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ export class PublishDropDown {
timeout: 30000
});
await t.click($acknowledgeBtn);
await t.wait(2000);
}
}

Expand Down

0 comments on commit f8d5034

Please sign in to comment.