Standardize response codes in Login (#6787)
* standardizing login response codes * playwright fix * added translation
This commit is contained in:
1 parent
1be6f192d4
commit
a4bed48eaf
5 files changed
+11
-8
No files matched your search
@@ -60,7 +60,7 @@ test.describe("Login and logout tests", () => {
|
||||
|
||||
test.describe("Login flow validations", async () => {
|
||||
test("Should warn when user does not exist", async ({ page }) => {
|
||||
const alertMessage = (await localize("en"))("no_account_exists");
|
||||
const alertMessage = (await localize("en"))("incorrect_username_password");
|
||||
|
||||
// Login with a non-existent user
|
||||
const never = "never";
|
||||
@@ -71,7 +71,7 @@ test.describe("Login and logout tests", () => {
|
||||
});
|
||||
|
||||
test("Should warn when password is incorrect", async ({ page, users }) => {
|
||||
const alertMessage = (await localize("en"))("incorrect_password");
|
||||
const alertMessage = (await localize("en"))("incorrect_username_password");
|
||||
// by default password===username with the users fixture
|
||||
const pro = await users.create({ username: "pro" });
|
||||
|
||||
|
||||
Reference in new issue
Block a user