From 90182a319dd1d5cb9eee73be51724bd0b12f73c6 Mon Sep 17 00:00:00 2001 From: Andrey Lushnikov Date: Wed, 12 Apr 2023 22:19:35 +0000 Subject: [PATCH] test: fix android test (#22370) For some reason, Android model changed from `sdk_gphone64_x86_64` to `sdk_gphone_x86_64`. Relax the test to test the model name & architecture. --- tests/android/browser.spec.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/android/browser.spec.ts b/tests/android/browser.spec.ts index b04672d0e4..54d4dc57a0 100644 --- a/tests/android/browser.spec.ts +++ b/tests/android/browser.spec.ts @@ -21,7 +21,8 @@ test.afterAll(async ({ androidDevice }) => { }); test('androidDevice.model', async function({ androidDevice }) { - expect(androidDevice.model()).toBe('sdk_gphone64_x86_64'); + expect(androidDevice.model()).toContain('sdk_gphone'); + expect(androidDevice.model()).toContain('x86_64'); }); test('androidDevice.launchBrowser', async function({ androidDevice }) {