You can define the two link text strings with let at the top and just re-use them instead of defining them for each test.