Skip to content

Commit

Permalink
Merge pull request #765 from bcgov/ricander
Browse files Browse the repository at this point in the history
Ricander
  • Loading branch information
ychung-mot authored Oct 30, 2024
2 parents 4688db4 + 9865916 commit 304c59b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Scenario: AddSubsidiaryPlatform

#Select Platform
When I click the edit button for a platform
Then I amd directed to the Platform view page
Then I am directed to the Platform view page

#Add sub-platform
When I click on the add subsidiary platform button
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,7 @@ public void WhenIClickOnTheManagePlatformsButton()
[Then(@"I should be presented with a list of platforms and sub-platforms")]
public void ThenIShouldBePresentedWithAListOfPlatformsAndSub_Platforms()
{


ClassicAssert.IsTrue(_Driver.GetCurrentURL().Contains("platform-management"));
}

[When(@"I click the edit button for a platform")]
Expand All @@ -111,11 +110,10 @@ public void WhenIClickTheEditButtonForAPlatform()
_ManagePlatformsPage.EditPlatformButton.Click();
}

[Then(@"I amd directed to the Platform view page")]
public void ThenIAmdDirectedToThePlatformViewPage()
[Then(@"I am directed to the Platform view page")]
public void ThenIAmDirectedToThePlatformViewPage()
{


ClassicAssert.IsTrue(_Driver.GetCurrentURL().Contains("/platform/"));
}

[When(@"I click on the add subsidiary platform button")]
Expand Down Expand Up @@ -162,7 +160,7 @@ public void WhenIClickTheSaveButton()
[Then(@"the sub platform should be created")]
public void ThenTheSubPlatformShouldBeCreated()
{

ClassicAssert.IsTrue(_Driver.GetCurrentURL().Contains("/platform/"));
}

[Then(@"the sub platform should be a child of the parent platform")]
Expand Down

0 comments on commit 304c59b

Please sign in to comment.