Skip to content

Commit 90270d1

Browse files
Updated documentation
1 parent 1004d3d commit 90270d1

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

docs/supported-locales-xcui.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,13 @@ curl --location --request POST 'https://mobile-api.lambdatest.com/framework/v1/x
179179
```
180180

181181
:::note
182-
- Ensure that both the **language** and **locale** parameters are passed simultaneously in the API request.
183-
- App should support the language and locale mentioned in the API request to work.
184-
- For XCUI sharding tests, you have to mention this in the `.yaml` file.
182+
- When setting language or locale parameters, make sure your tests use the `ProcessInfo` object to pass these arguments correctly. This ensures the app launches with the specified language and locale settings.
183+
```swift
184+
let app = XCUIApplication()
185+
app.launchArguments += ProcessInfo().arguments
186+
app.launch()
187+
```
188+
- The language and locale settings are applied at the app level.
189+
- To ensure your application under test displays the correct localized strings, dates, times, and calendar formats, include both language and locale in your desired capabilities.
190+
- For XCUI sharding tests, you have to mention this in the `.yaml` file.
185191
:::

0 commit comments

Comments
 (0)