Skip to content

Commit

Permalink
Naming Conventions
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanmmay committed Jun 10, 2022
1 parent caeb199 commit 3e90fe7
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion ConjuringTests/BasementPageObject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public void ClickPiano()
PianoImage.Click();
}

public Boolean VerifyPianoAlertAppears()
public Boolean ClickPianoAlert()
{
// Waiting for Alert
WebDriverWait wait = new(_webDriver, TimeSpan.FromSeconds(10));
Expand Down
2 changes: 1 addition & 1 deletion ConjuringTests/HomePageObject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public HomePageObject(IWebDriver webDriver)

private IWebElement PossessionButton => _webDriver.FindElement(By.ClassName("btn-danger"));

public void VerifyAtHomePage()
public void GoToHomePage()
{
if (_webDriver.Url != _homepageURL)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public BasementPossessionStepDefinitions(BrowserDriver browserDriver)
[Given(@"I am on conjuring site going towards Basement")]
public void GivenIAmOnConjuringSite()
{
_homePage.VerifyAtHomePage();
_homePage.GoToHomePage();
}

[When(@"I click possession for going to Basement")]
Expand Down Expand Up @@ -49,7 +49,7 @@ public void WhenIClickOnThePiano()
[Then(@"the piano alert appears")]
public void ThenThePianoAlertAppears()
{
Boolean alertAppears = _basementPage.VerifyPianoAlertAppears();
Boolean alertAppears = _basementPage.ClickPianoAlert();
alertAppears.Should().BeTrue();
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public BedroomPossessionStepDefinitions(BrowserDriver browserDriver)
[Given(@"I am on conjuring site going towards BedroomB")]
public void GivenIAmOnConjuringSite3()
{
_homePage.VerifyAtHomePage();
_homePage.GoToHomePage();
}

[When(@"I click possession for going to BedroomB")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public BedroomUnpossessedStepDefinitions(BrowserDriver browserDriver)
[Given(@"I am on conjuring site going towards BedroomG")]
public void GivenIAmOnConjuringSite3()
{
_homePage.VerifyAtHomePage();
_homePage.GoToHomePage();
}

[When(@"I click BedroomG")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public OutsidePossessionStepDefinitions(BrowserDriver browserDriver)
[Given(@"I am on conjuring site going towards Outside")]
public void GivenIAmOnConjuringSite2()
{
_homePage.VerifyAtHomePage();
_homePage.GoToHomePage();
}

[When(@"I click possession for going Outside")]
Expand Down

0 comments on commit 3e90fe7

Please sign in to comment.