Skip to content

Commit

Permalink
fix flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
leider committed Oct 3, 2023
1 parent 3ce5b55 commit 364a22d
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions softwerkskammer/test/restricted-access/subapps_access_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ describe("Security for normal visitors does not allow to access ", () => {
}

it("GET URLs", async () => {
const all = [
[
"/activities/new",
"/activities/newLike/other",
"/activities/edit/EventA",
Expand All @@ -34,20 +34,18 @@ describe("Security for normal visitors does not allow to access ", () => {
"/members/edit/nick",
"/members/nick",
"/dashboard/",
].map(checkGetUrlForRedirection);
await Promise.all(all);
].forEach(async (url) => await checkGetUrlForRedirection(url));
});

it("POST URLs", async () => {
const all = [
[
"/activities/submit",
"/activities/subscribe",
"/activities/addToWaitinglist",
"/gallery/",
"/groups/submit",
"/groups/subscribe/GroupA",
"/members/submit",
].map(checkPostUrlForRedirection);
await Promise.all(all);
].forEach(async (url) => await checkPostUrlForRedirection(url));
});
});

0 comments on commit 364a22d

Please sign in to comment.