Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Draft] 🎀 Add login on demand depending on user permission 🎀 #5176

Closed
wants to merge 63 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
09ae677
Added login on demand depending on user permission
michalina-graczyk Sep 23, 2024
d4d8baa
Mute problematic eslint rule
michalina-graczyk Sep 23, 2024
dea1a07
Test testWithPermission for admin
michalina-graczyk Sep 24, 2024
0d6e19e
Change test order
michalina-graczyk Sep 24, 2024
ae33a8c
Add changeset
michalina-graczyk Sep 25, 2024
bb6f440
Make test 131 run in serial mode
michalina-graczyk Sep 25, 2024
bbc56d3
Add login failed error logging
michalina-graczyk Sep 26, 2024
3aaa323
Fix error for login for the TC:137
michalina-graczyk Sep 27, 2024
b43f9da
Add in-memory lock mechanism for logInUserViaApi
michalina-graczyk Sep 30, 2024
449b5de
Guarantee minimum of 1000ms between requests
michalina-graczyk Sep 30, 2024
1d4ad99
Extend the time to 1500ms and add a log
michalina-graczyk Oct 1, 2024
fdd72dc
Add logs with @actions/core
michalina-graczyk Oct 1, 2024
c054b8a
Log attempts
andrzejewsky Oct 1, 2024
3c5d38e
Add PW debug logs
michalina-graczyk Oct 1, 2024
81fcdf1
Hide banner help on demand
andrzejewsky Oct 1, 2024
227f6b3
list reporter
andrzejewsky Oct 1, 2024
4d38330
list reporter
andrzejewsky Oct 1, 2024
886c7bd
Apply to other tests
andrzejewsky Oct 1, 2024
aa33f12
Apply to other tests
andrzejewsky Oct 1, 2024
f2d59d2
Apply to other tests
andrzejewsky Oct 1, 2024
7b7260c
Apply to other tests
andrzejewsky Oct 1, 2024
7681f14
Apply to other tests
andrzejewsky Oct 1, 2024
c7e00d7
Apply to other tests
andrzejewsky Oct 1, 2024
294f521
Apply to other tests
andrzejewsky Oct 1, 2024
692e7dd
Apply to other tests
andrzejewsky Oct 1, 2024
c89800f
Apply to other tests
andrzejewsky Oct 1, 2024
215dd07
Ci fixes
andrzejewsky Oct 2, 2024
252107d
Ci fixes
andrzejewsky Oct 2, 2024
73239b8
Ci fixes
andrzejewsky Oct 2, 2024
17b4bcb
Ci fixes
andrzejewsky Oct 2, 2024
46b2570
Ci fixes
andrzejewsky Oct 2, 2024
01288c7
Ci fixes
andrzejewsky Oct 2, 2024
4368ca5
Ci fixes
andrzejewsky Oct 2, 2024
c0a26c7
Ci fixes
andrzejewsky Oct 2, 2024
8f20df9
Ci fixes
andrzejewsky Oct 2, 2024
02b1071
Ci fixes
andrzejewsky Oct 2, 2024
f00c970
Ci fixes
andrzejewsky Oct 2, 2024
56b622d
Ci fixes
andrzejewsky Oct 2, 2024
2ca25da
Ci fixes
andrzejewsky Oct 2, 2024
d9f080e
Ci fixes
andrzejewsky Oct 2, 2024
db6a337
Ci fixes
andrzejewsky Oct 2, 2024
fe55289
Ci fixes
andrzejewsky Oct 2, 2024
0cbb42b
Ci fixes
andrzejewsky Oct 2, 2024
0126f8f
Ci fixes
andrzejewsky Oct 2, 2024
a40405a
Ci fixes
andrzejewsky Oct 2, 2024
542a178
Ci fixes
andrzejewsky Oct 2, 2024
4b6a6c0
Ci fixes
andrzejewsky Oct 2, 2024
77f845a
Ci fixes
andrzejewsky Oct 2, 2024
8512c64
Ci fixes
andrzejewsky Oct 2, 2024
096190f
Ci fixes
andrzejewsky Oct 2, 2024
0e60e93
Ci fixes
andrzejewsky Oct 2, 2024
b209ce7
Ci fixes
andrzejewsky Oct 2, 2024
cb31fca
Ci fixes
andrzejewsky Oct 2, 2024
26647d6
Ci fixes
andrzejewsky Oct 2, 2024
4295545
Ci fixes
andrzejewsky Oct 2, 2024
be30908
Ci fixes
andrzejewsky Oct 2, 2024
2e1dd38
Ci fixes
andrzejewsky Oct 2, 2024
4cd2d57
Ci fixes
andrzejewsky Oct 2, 2024
3f35d60
Ci fixes
andrzejewsky Oct 3, 2024
f81f552
Ci fixes
andrzejewsky Oct 3, 2024
92bcb91
Ci fixes
andrzejewsky Oct 3, 2024
6a21853
Ci fixes
andrzejewsky Oct 3, 2024
acc2ebf
Reporter
andrzejewsky Oct 3, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix error for login for the TC:137
  • Loading branch information
michalina-graczyk committed Sep 30, 2024
commit 3aaa323d78a25d69088330caece79eb3047a09d4
14 changes: 6 additions & 8 deletions playwright/tests/staffMembers.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,14 +81,12 @@ test("TC: SALEOR_137 Admin User should be able to deactivate other user @e2e @st
await staffMembersPage.basePage.expectSuccessBanner();
await expect(await staffMembersPage.isActiveCheckbox.isChecked()).toEqual(false);

const loginViaApiDeactivatedUserResponse = await basicApiService.logInUserViaApi({
email: USERS.userToBeDeactivated.email,
password: process.env.E2E_PERMISSIONS_USERS_PASSWORD!,
});

await expect(loginViaApiDeactivatedUserResponse.data.tokenCreate.errors[0].code).toEqual(
"INACTIVE",
);
await expect(
basicApiService.logInUserViaApi({
email: USERS.userToBeDeactivated.email,
password: process.env.E2E_PERMISSIONS_USERS_PASSWORD!,
}),
).rejects.toThrow("Login failed: Account inactive");
});

test("TC: SALEOR_38 Admin User should be able to activate other user @e2e @staff-members", async () => {
Expand Down