-
Notifications
You must be signed in to change notification settings - Fork 0
/
UnitTest1.cs
40 lines (37 loc) · 981 Bytes
/
UnitTest1.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace UnitTestProject1
{
[TestClass]
public class UnitTest1
{
[TestInitialize]
public void init()
{
Driver.Initialize();
}
[TestMethod]
public void TestMethod1()
{
LoginPage.GoTo();
LoginPage.LoginAs("scopethesound").WithPassword("niplifeow").Login();
Assert.IsTrue(DashboardPage.IsAt, "Failed to login");
}
[TestMethod]
public void CheckTags()
{
LoginPage.GoTo();
LoginPage.LoginAs("scopethesound").WithPassword("niplifeow").Login();
CheckLinks.CheckBasicLinks();
CheckLinks.CheckConvo();
CheckLinks.Discovery();
CheckLinks.Search();
CheckLinks.Likes();
}
[TestCleanup]
public void Cleanup()
{
Driver.Close();
}
}
}