jaktestowac / gad-gui-api-demo

GAD🦎 - Application for learning testing GUI and API
https://jaktestowac.pl/about-gad
GNU General Public License v3.0
14 stars 10 forks source link

[Bug] Surname validation on register #45

Closed touwinho closed 3 weeks ago

touwinho commented 2 months ago

Describe the bug Last name input on Register page doesn't allow to provide two-part surnames. Validation is returning: "Please enter only Letters!"

To Reproduce Steps to reproduce the behaviour:

  1. Go to '/register.html'
  2. Fill 'User Last Name' input with two-part surname e.g. "Nowak-Kowalska"

Expected behaviour After complete rest full form user should be successfully created.

Screenshots Screenshot 2024-08-27 at 11 20 50

Desktop (please complete the following information):

Additional context Faker.js sometimes returns two-part surname. It is causing a flaky tests. There is no problem to remove '-', but this report may be helpful

Freudenberger commented 1 month ago

Because of braking change in one of our lesson I will rework this solution.

Freudenberger commented 3 weeks ago

Fixed (reverted): v2.7.6 Right now surname accepts a-zA-Z and spaces. For possibility to use - in surname You have to use feature flag strict_surname_validation.