Skip to content

Commit

Permalink
Remove flaky story branching test. (#23994)
Browse files Browse the repository at this point in the history
  • Loading branch information
William Chou authored and gmajoulet committed Aug 16, 2019
1 parent 3ccc8b2 commit 7b2162a
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions extensions/amp-story/1.0/test/test-amp-story.js
Original file line number Diff line number Diff line change
Expand Up @@ -1696,29 +1696,6 @@ describes.realWin(
});
});

it('should navigate to the correct previous page after navigating away', () => {
createPages(story.element, 4, ['cover', 'page-1', 'page-2', 'page-3']);

return story.layoutCallback().then(() => {
const currentLocation = win.location;
story
.getPageById('cover')
.element.setAttribute('advance-to', 'page-3');
story.activePage_.element.dispatchEvent(
new MouseEvent('click', {clientX: 200})
);

win.location = 'https://example.com/';
win.location = currentLocation;

story.activePage_.element.dispatchEvent(
new MouseEvent('click', {clientX: 0})
);

expect(story.activePage_.element.id).to.equal('cover');
});
});

it('should correctly mark goToPage pages are distance 1', () => {
createPages(story.element, 4, ['cover', 'page-1', 'page-2', 'page-3']);
story.buildCallback();
Expand Down

0 comments on commit 7b2162a

Please sign in to comment.