Skip to content

Instantly share code, notes, and snippets.

@Cloud-Awesome
Last active May 18, 2020 15:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Cloud-Awesome/b391299bb70abcea85871adc7b354e14 to your computer and use it in GitHub Desktop.
Save Cloud-Awesome/b391299bb70abcea85871adc7b354e14 to your computer and use it in GitHub Desktop.
Testing Gists from GistPad in VS Code
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
}
}
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