Last active
May 18, 2020 15:23
-
-
Save Cloud-Awesome/b391299bb70abcea85871adc7b354e14 to your computer and use it in GitHub Desktop.
Testing Gists from GistPad in VS Code
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
public class SupportCases | |
{ | |
[Test] | |
[Category("Case Management")] | |
[Description("")] | |
[Ignore("Test writing is in progress...")] | |
public void ViewClosedCases() | |
{ | |
// Arrange | |
var config = new PortalConfiguration("arthur"); | |
var portal = new Portal(config); | |
if (!portal.Login()) | |
{ | |
Assert.Fail("Failed to authenticate"); | |
} | |
// Act | |
var createdCaseUrl = | |
portal | |
.Navigate(SupportPage.PageUrl) | |
.Wait(1000) | |
.EntityList(new EntityList(portal) | |
// TODO - HERE | |
.ChangeView() | |
.ViewRecord() | |
) | |
.Wait(1000); | |
portal.Quit(); | |
// Assert | |
} | |
} |
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
using System; | |
using NUnit.Framework; | |
using CloudAwesome.PortalTestFramework; | |
using CloudAwesome.PortalTestFramework.Models; | |
namespace CloudAwesome.PortalTests.Samples.CaseManagement | |
{ | |
public class SupportCases | |
{ | |
[Test] | |
[Category("Case Management")] | |
[Description("")] | |
[Ignore("Test writing is in progress...")] | |
public void ViewClosedCases() | |
{ | |
// Arrange | |
var config = new PortalConfiguration("arthur"); | |
var portal = new Portal(config); | |
if (!portal.Login()) | |
{ | |
Assert.Fail("Failed to authenticate"); | |
} | |
// Act | |
var createdCaseUrl = | |
portal | |
.Navigate(SupportPage.PageUrl) | |
.Wait(1000) | |
.EntityList(new EntityList(portal) | |
// TODO - HERE | |
.ChangeView() | |
.ViewRecord() | |
) | |
.Wait(1000); | |
portal.Quit(); | |
// Assert | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment