Skip to content

Commit

Permalink
Exchange iPhone X, which was removed from Chrome Web Developer Tools …
Browse files Browse the repository at this point in the history
…devices list, with iPhone 12 Pro

Co-authored-by: Marco Geweke <marco.geweke@otto.de>
  • Loading branch information
MediaMarco and MediaMarco committed Sep 25, 2024
1 parent 0e06875 commit 9761280
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,8 @@ public void shouldRunJLineupWithSomeDevices_WithChrome() throws Exception {
fileTracker.contexts.forEach((k, v) -> {
DeviceConfig deviceConfig = v.screenshotContext.deviceConfig;
String filename = v.screenshots.get(0).get(BrowserStep.before);
if (deviceConfig.deviceName.equals("iPhone X")) {
checkScreenshotSize(filename, 1125, 2436); //iPhone X screen size
if (deviceConfig.deviceName.equals("iPhone 12 Pro")) {
checkScreenshotSize(filename, 1170, 2532); //iPhone 12 Pro screen size
} else if ("mobile1".equals(deviceConfig.userAgent)) {
checkScreenshotSize(filename, 1500, 3000);
} else if ("mobile2".equals(deviceConfig.userAgent)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
],
"devices": [
{
"device-name": "iPhone X"
"device-name": "iPhone 12 Pro"
},
{
"deviceName": "MOBILE",
Expand Down

0 comments on commit 9761280

Please sign in to comment.