Skip to content

Commit

Permalink
Unskip some tests that no longer fail
Browse files Browse the repository at this point in the history
  • Loading branch information
danielrozenberg committed Aug 2, 2023
1 parent 835d5d2 commit d362447
Showing 1 changed file with 6 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,12 @@ describes.sandboxed.skip('amp-fx-collection', {}, function () {
win = env.win;
toggleExperiment(win, 'amp-fx-fly-in', true, false);
});
//TODO(esth, #19392): Fails on Firefox 63.0.0
it.skip('runs fly-in-left animation with default parameters', () => {
it('runs fly-in-left animation with default parameters', async () => {
expect(isExperimentOn(win, 'amp-fx-fly-in')).to.be.true;
const initialLeft = getComputedLeft(win);
win.scrollTo(0, 0.5 * getViewportHeight(win));
return timeout(2000).then(() => {
expect(getComputedLeft(win)).to.be.above(initialLeft);
});
await timeout(2000);
expect(getComputedLeft(win)).to.be.above(initialLeft);
});
}
);
Expand Down Expand Up @@ -82,14 +80,12 @@ describes.sandboxed.skip('amp-fx-collection', {}, function () {
win = env.win;
toggleExperiment(win, 'amp-fx-fly-in', true, false);
});
//TODO(esth, #19392): Fails on Firefox 63.0.0
it.skip('runs fly-in-right animation with default parameters', () => {
it.skip('runs fly-in-right animation with default parameters', async () => {
expect(isExperimentOn(win, 'amp-fx-fly-in')).to.be.true;
const initialLeft = getComputedLeft(win);
win.scrollTo(0, 0.5 * getViewportHeight(win));
return timeout(2000).then(() => {
expect(getComputedLeft(win)).to.be.below(initialLeft);
});
await timeout(2000);
expect(getComputedLeft(win)).to.be.below(initialLeft);
});
}
);
Expand Down

0 comments on commit d362447

Please sign in to comment.