Skip to content

Commit

Permalink
✅ Deflakes SwG E2E Test (ampproject#25065)
Browse files Browse the repository at this point in the history
* Adds failinge expectation

* Fixes expectation

* Verify size of btn

* Fixes comment
  • Loading branch information
ChrisAntaki authored and joshuarrrr committed Oct 22, 2019
1 parent 96c6d53 commit c9872b9
Showing 1 changed file with 6 additions and 3 deletions.
Expand Up @@ -28,10 +28,13 @@ describes.endtoend(
controller = env.controller;
});

// TODO(chenshay): This is failling in Chrome with "ElementNotInteractableError":
// https://travis-ci.org/ampproject/amphtml/jobs/598248437#L2053-L2063
it.skip('Subscription offers should render correctly', async () => {
it('Subscription offers should render correctly', async () => {
const btn = await controller.findElement('#swg_button');
// Wait for button to be rendered and ready to click
await expect(controller.getElementRect(btn)).to.include({
width: 240,
height: 40,
});
await controller.click(btn);

// Switch to SwG's outer iFrame
Expand Down

0 comments on commit c9872b9

Please sign in to comment.