Skip to content

providing the config as --config playwright.config.ts doesnt seem to work #108

@testchimphq

Description

@testchimphq

Mobilewright version

0.0.33

Operating system

macOS

Target platform

iOS

Device or simulator

iphone16

Minimal reproduction

I renamed the mobilewright.config.ts file to playwright.config.ts and ran:
`npx mobilewright test --config playwright.config.ts -> it gives : Error: Unsupported platform: "undefined". Must be "ios" or "android".
It seems mobilewright has a hardcoded assumption on the name of the config file and doesnt honour the passed config flag.

Actual behavior

it gives : Error: Unsupported platform: "undefined". Must be "ios" or "android".

Expected behavior

It should pick up the config flag passed and use that file for the config. Better yet, it should not depend on ts assumption (then providing the standard playwright.config.js style file would work - with mobilewright specific config values configured).

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions