getgauge / taiko

A node.js library for testing modern web applications
https://taiko.dev
MIT License
3.57k stars 453 forks source link

Images do not load correctly when we use the iPhone as an emulation device. #2565

Closed hemakumar234 closed 2 years ago

hemakumar234 commented 2 years ago

Images do not load correctly when we use the iPhone as an emulation device but loads fine when we use any Android emulation device.

To Reproduce Steps (or script) to reproduce the behavior:

  1. Go to 'https://m.clinique.com/products/1599/makeup/foundations'
  2. Scroll down to 'product grid page'
  3. You may see that the images are broken.
const { openBrowser, write, closeBrowser, goto } = require('taiko');
openBrowser();
await emulateDevice('iPhone X')
goto('https://m.clinique.com/products/1599/makeup/foundations')

Expected behavior All content and images should be loaded correctly without broken images as it comes in android.

Screenshots iPhone device emulation screenshot image

Android device emulation screenshot image image

Versions:

Gauge version: 1.4.2
Commit Hash: f080fbc

Plugins
-------
html-report (4.1.4)
js (2.4.0)
screenshot (0.1.0)
ts (0.1.0)
zabil commented 2 years ago

The site does not load when emulating iphone using just the browser (without Taiko) For example

Screenshot 2022-03-24 at 10 46 37

Can you check if there's an issue with how app renders?

hemakumar234 commented 2 years ago

Thanks for the quick response. I will check and update you :)

zabil commented 2 years ago

👍 closing this for now then. Will re-open if it's an issue with Taiko