-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Radoslav Radev
committed
May 1, 2024
1 parent
51945ce
commit 09619ea
Showing
2 changed files
with
6 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,6 +20,7 @@ public LoginTests(IWebDriver? driver = null) | |
[Fact] | ||
public void Login() | ||
{ | ||
Thread.Sleep(1000); | ||
string usernameText = "[email protected]"; | ||
IWebElement usernameInput = _driver.FindElement(LoginPage.UsernameInput); | ||
foreach (var c in usernameText) | ||
|
@@ -59,6 +60,7 @@ public void Logout() | |
[Fact] | ||
public void Register() | ||
{ | ||
Thread.Sleep(1000); | ||
// _driver.FindElement(LoginPage.UsernameInput).SendKeys($"Tester-{new Guid().ToString()}@abv.bg"); | ||
IWebElement usernameInput = _driver.FindElement(LoginPage.UsernameInput); | ||
string usernameText = $"Tester-{Guid.NewGuid().ToString()}@abv.bg"; | ||
|
@@ -75,12 +77,12 @@ public void Register() | |
{ | ||
passwordInput | ||
.SendKeys(c.ToString()); | ||
Thread.Sleep(200); | ||
Thread.Sleep(600); | ||
} | ||
|
||
|
||
_driver.FindElement(LoginPage.RegisterButton).Click(); | ||
Thread.Sleep(500); | ||
Thread.Sleep(1500); | ||
_driver.FindElement(LoginPage.AcceptEula).Click(); | ||
Thread.Sleep(5000); | ||
Assert.NotNull(_driver.FindElement(Common.LogoutButton)); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters