Skip to content

Fix and re-enable SupportTests UI test #11661

@jaclync

Description

@jaclync

To upgrade CI to Xcode 15.1 in #11352, we had to disable SupportTests as we couldn't find a good fix for the failing keyboard focus issue in the UI test. I could reproduce the UI test failure, and the error was:

test_load_support_screen(): Failed to synthesize event: Neither element nor any descendant has keyboard focus. Event dispatch snapshot: TextField, {{21.0, 620.0}, {388.0, 22.0}}
Element debug description:
Attributes: TextField, 0x100cb4c20, {{21.0, 620.0}, {388.0, 22.0}}
Element subtree:
 →TextField, 0x100cb4c20, {{21.0, 620.0}, {388.0, 22.0}}
Path to element:
 →Application, 0x100c15010, pid: 30716, label: 'Woo'
  ↳Window (Main), 0x100c97a30, {{0.0, 0.0}, {430.0, 932.0}}
   ↳Other, 0x100cb3120, {{0.0, 0.0}, {430.0, 932.0}}
    ↳Other, 0x100cb3360, {{0.0, 69.0}, {430.0, 863.0}}
     ↳Other, 0x100cb3480, {{0.0, 69.0}, {430.0, 863.0}}
      ↳Other, 0x100cb35a0, {{0.0, 69.0}, {430.0, 863.0}}
       ↳Other, 0x100cb36c0, {{0.0, 69.0}, {430.0, 863.0}}
        ↳Other, 0x100cb3b40, {{0.0, 69.0}, {430.0, 863.0}}
         ↳Other, 0x100cb3c60, {{0.0, 69.0}, {430.0, 863.0}}
          ↳Other, 0x100cb3d80, {{0.0, 69.0}, {430.0, 863.0}}
           ↳Other, 0x100cb3ea0, {{0.0, 69.0}, {430.0, 863.0}}
            ↳ScrollView, 0x100cb3fc0, {{0.0, 69.0}, {430.0, 744.3}}
             ↳Other, 0x100cb40e0, {{0.0, 125.0}, {430.0, 883.0}}
              ↳TextField, 0x100cb4c20, {{21.0, 620.0}, {388.0, 22.0}}
Query chain:
 →Find: Target Application 'com.automattic.woocommerce'
  Output: {
    Application, 0x100caf0c0, pid: 30716, label: 'Woo'
  }
  ↪︎Find: Descendants matching type ScrollView
    Output: {
      ScrollView, 0x100cada40, {{0.0, 69.0}, {430.0, 744.3}}
    }
    ↪︎Find: Descendants matching type TextField
      Output: {
        TextField, 0x1021164d0, {{21.0, 620.0}, {388.0, 22.0}}
      }
      ↪︎Find: Element at index 0
        Output: {
          TextField, 0x100cabd00, {{21.0, 620.0}, {388.0, 22.0}}
        }

It seemed like the text field was found, but the support form subject text field can't be focused for any text to be entered.

SwiftUI view: SupportForm/SupportFormHostingController

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions