Skip to content
Permalink
Browse files

Remove My Shots test, since My Shots button is usually gone

  • Loading branch information...
ianb committed Jan 10, 2019
1 parent 829560f commit 534eba494078d267e5b311c9b0f79693606b3b98
Showing with 0 additions and 41 deletions.
  1. +0 −41 test/test.js
@@ -321,47 +321,6 @@ describe("Test Screenshots", function() {
}).catch(done);
});

it("should navigate to My Shots", function(done) {
let currentTabs, startingTabCount;
driver.getAllWindowHandles().then(tabs => {
startingTabCount = tabs.length;
}).then(() => {
return driver.get(backend);
}).then(() => {
return startScreenshots(driver);
}).then(() => {
return driver.wait(
until.ableToSwitchToFrame(By.id(PRESELECTION_IFRAME_ID))
);
}).then(() => {
return driver.wait(
until.elementLocated(By.css(".myshots-button"))
);
}).then(myShotsButton => {
return myShotsButton.click();
}).then(() => {
return driver.wait(
() => {
return driver.getAllWindowHandles().then(tabs => {
currentTabs = tabs;
return currentTabs.length > startingTabCount;
});
}
);
}).then(() => {
return driver.switchTo().window(currentTabs[currentTabs.length - 1]);
}).then(() => {
return driver.wait(
until.elementLocated(By.css("#shot-index-page"))
);
}).then(() => {
return driver.getCurrentUrl();
}).then(url => {
assert.equal(url, `${backend}/shots`, `Navigated to ${url} instead of My Shots at ${backend}/shots`);
done();
}).catch(done);
});

it("should show onboarding with #hello", async function() {
await driver.get(`${backend}/#hello`);
await driver.setContext(firefox.Context.CONTENT);

0 comments on commit 534eba4

Please sign in to comment.
You can’t perform that action at this time.