Gitlab commit history missing Deleted commit for a file

So here is the scenario:

  1. Create a folder called 'Test ’ and have two files named ‘test1.yaml’ and ‘test2.yaml’.
  2. Delete ‘test1.yaml’.
  3. Create again a file with same name ‘test1.yaml’.
  4. Check the history for the file ‘test1.yaml’.

It’s not showing up deleted commit in the history but commits related to creation and updating of file are showing up. Is it an expected behavior?
If you perform same scenario as above, Github shows deleted and created history as expected.