[🐛 Bug]: Emulation issue with device iPhoneX

Abierto
#16,500 2 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
Medio día
Aptitud para principiantes
35/100
Tipo de issue
Error
Claridad
Necesita aclaración
Estado de actividad
Activo
Stack tecnológico
node.js, typescript
Área
testing-qa

Línea de trabajo

Start from the browser.emulate('device', 'iPhone X') command implementation and the iPhone X device descriptor it loads, then compare the viewport, device pixel ratio and user-agent it applies with what the expected screenshot needs. The report shows only two screenshots and gives no failing assertion, so first ask which emulated property makes the modal differ. Done means the reproduction page renders the same modal layout under emulation as before.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Bug 🐛 Needs Triaging ⏳
Have you read the Contributing Guidelines on issues?
WebdriverIO Version

10.2.0

Node.js Version

26.13.1

Mode

WDIO Testrunner

Which capabilities are you using?
{
  browserName: 'chrome',
  browserVersion: 'stable',
}

under Alpine Chromium 158 & Ubuntu Chrome 158 from Official binaries
What happened?

Screenshot

component_modal_ui_modal_window_mobile_default
What is your expected behavior?

What was before

default
How to reproduce the bug.
 it('mobile', async () => {
                        const restore = await browser.emulate('device', 'iPhone X');

                        try {
                            await browser.url(url.href);

                            // some tests
                        } finally {
                            await restore();
                        }
                    });

With some fixed modal

Relevant log output
Nothing special
Code of Conduct
  • I agree to follow this project's Code of Conduct
Is there an existing issue for this?
  • I have searched the existing issues
Lenguaje dominante
TypeScript
Estrellas
9.9k
Forks
2.7k
Merge medio
17 h 37 min
PR fusionados (30 d)
92

Preparar el entorno

Abrir en Codespaces

Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de webdriverio/webdriverio

Todos los issues de webdriverio/webdriverio

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.