-
Notifications
You must be signed in to change notification settings - Fork 0
/
lioncrestTestSuite.js
34 lines (29 loc) · 1.48 KB
/
lioncrestTestSuite.js
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
const {navBarLocators} = require('./locators.js');
const {testingSetUp, lioncrestHomepage, checkDirectorySync, chromeOptions, topNavBar} = require("./page.js");
const {webdriver, Builder, By, Key, until, actions, tabs} = require('selenium-webdriver');
const chrome = require('selenium-webdriver/chrome');
const fs = require('fs');
checkDirectorySync('./logs');
checkDirectorySync('./logs/screenshots');
describe("Lioncrest Guild Website Test Suite", function() {
this.timeout(180000); //Required for not receiving timeout error when starting tests.
it("Verify the navbar links work.", async function() {
const driver = new Builder().forBrowser('chrome').setChromeOptions(chromeOptions).build();
await driver.get(testingSetUp.lioncrestUrl);
await driver.manage().window().maximize();
await lioncrestHomepage.loadLioncrestHomepage(driver);
await topNavBar.clickRulesDropdown(driver);
await topNavBar.clickCodeOfConduct(driver);
await topNavBar.verifyCodeOfConductPageLoaded(driver);
await topNavBar.clickRulesDropdown(driver);
await topNavBar.clickRequirements(driver);
await topNavBar.verifyRequirementsPageLoaded(driver);
await topNavBar.clickInformationDropdown(driver);
await topNavBar.clickLore(driver);
await topNavBar.verifyLorePageLoaded(driver);
await topNavBar.clickInformationDropdown(driver);
await topNavBar.clickMeetTheOfficers(driver);
await topNavBar.verifyMeetTheOfficersPageLoaded(driver);
await driver.quit();
});
});