Skip to content

Commit

Permalink
Fixed lint
Browse files Browse the repository at this point in the history
  • Loading branch information
bs-shobhitkumar committed Feb 27, 2025
1 parent 8e72a39 commit 51d856b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions percy/providers/genericProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -249,13 +249,13 @@ class GenericProvider {
const element = elements[index];

const capabilities = await this.driver.getCapabilities();
const PLATFORM_NAME = capabilities.platformName.toLowerCase();
const platformName = capabilities.platformName.toLowerCase();

if (PLATFORM_NAME === 'android') {
if (platformName === 'android') {
// Android identifiers
identifier = await element.getAttribute('resource-id') ||
await element.getAttribute('class');
} else if (PLATFORM_NAME === 'ios') {
} else if (platformName === 'ios') {
// iOS identifiers
identifier = await element.getAttribute('name') ||
await element.getAttribute('type');
Expand Down

0 comments on commit 51d856b

Please sign in to comment.