mirror of
https://github.com/LD-Reborn/Berufsschule_HAM.git
synced 2025-12-20 15:01:56 +00:00
Added randomized names
This commit is contained in:
@@ -43,11 +43,13 @@ public class LocationsPageTests : IDisposable
|
||||
[Fact]
|
||||
public void LocationsPage_ShouldCreateAndUpdateAndDeleteGroup()
|
||||
{
|
||||
string randomName = $"RESERVED_LOCATION_{AppHelper.GetRandomName()}";
|
||||
string randomName2 = $"RESERVED_LOCATION_{AppHelper.GetRandomName()}";
|
||||
AppHelper.Login(_driver);
|
||||
LocationsHelper.NavigateToLocationsPage(_driver);
|
||||
LocationsHelper.CreateLocation(_driver, "RESERVED_LOCATION", "RESERVED_ROOM", "RESERVED_ROOMNUMBER");
|
||||
LocationsHelper.UpdateLocation(_driver, "RESERVED_LOCATION", "RESERVED_ROOM", "RESERVED_ROOMNUMBER", "RESERVED_LOCATION2", "RESERVED_ROOM2", "RESERVED_ROOMNUMBER2");
|
||||
LocationsHelper.UpdateLocation(_driver, "RESERVED_LOCATION2", "RESERVED_ROOM2", "RESERVED_ROOMNUMBER2", "RESERVED_LOCATION", "RESERVED_ROOM", "RESERVED_ROOMNUMBER");
|
||||
LocationsHelper.CreateLocation(_driver, randomName, "RESERVED_ROOM", "RESERVED_ROOMNUMBER");
|
||||
LocationsHelper.UpdateLocation(_driver, randomName, "RESERVED_ROOM", "RESERVED_ROOMNUMBER", randomName2, "RESERVED_ROOM2", "RESERVED_ROOMNUMBER2");
|
||||
LocationsHelper.UpdateLocation(_driver, randomName2, "RESERVED_ROOM2", "RESERVED_ROOMNUMBER2", randomName, "RESERVED_ROOM", "RESERVED_ROOMNUMBER");
|
||||
LocationsHelper.DeleteLocation(_driver, "reservedlocation-reservedroom-reservedroomnumber");
|
||||
}
|
||||
public void Dispose()
|
||||
|
||||
Reference in New Issue
Block a user