Commit 10ed23f1 authored by BryceLTaylor's avatar BryceLTaylor

Revert "Update sign-in-and-out integration tests for new chromedriver"

This reverts commit c5f83e86.
parent c5f83e86
This diff is collapsed.
...@@ -17,8 +17,6 @@ let wwwURL = rootUrl; ...@@ -17,8 +17,6 @@ let wwwURL = rootUrl;
if (remote){ if (remote){
jest.setTimeout(60000); jest.setTimeout(60000);
} else {
jest.setTimeout(10000);
} }
let driver; let driver;
...@@ -43,10 +41,8 @@ describe('www-integration sign-in-and-out', () => { ...@@ -43,10 +41,8 @@ describe('www-integration sign-in-and-out', () => {
await name.sendKeys(username); await name.sendKeys(username);
let word = await findByXpath('//input[@id="frc-password-1088"]'); let word = await findByXpath('//input[@id="frc-password-1088"]');
await word.sendKeys(password); await word.sendKeys(password);
await driver.sleep(500);
await clickXpath('//button[contains(@class, "button") and ' + await clickXpath('//button[contains(@class, "button") and ' +
'contains(@class, "submit-button") and contains(@class, "white")]'); 'contains(@class, "submit-button") and contains(@class, "white")]');
await driver.sleep(500);
let element = await findByXpath('//span[contains(@class, "profile-name")]'); let element = await findByXpath('//span[contains(@class, "profile-name")]');
let text = await element.getText(); let text = await element.getText();
await expect(text.toLowerCase()).toEqual(username.toLowerCase()); await expect(text.toLowerCase()).toEqual(username.toLowerCase());
...@@ -74,10 +70,8 @@ describe('www-integration sign-in-and-out', () => { ...@@ -74,10 +70,8 @@ describe('www-integration sign-in-and-out', () => {
await name.sendKeys(username); await name.sendKeys(username);
let word = await findByXpath('//input[@id="frc-password-1088"]'); let word = await findByXpath('//input[@id="frc-password-1088"]');
await word.sendKeys(password); await word.sendKeys(password);
await driver.sleep(500);
await clickXpath('//button[contains(@class, "button") and ' + await clickXpath('//button[contains(@class, "button") and ' +
'contains(@class, "submit-button") and contains(@class, "white")]'); 'contains(@class, "submit-button") and contains(@class, "white")]');
await driver.sleep(500);
}); });
test('sign out on www', async () => { test('sign out on www', async () => {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment