Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request for support with migration to wdi5 and custom matchers #643

Open
TrittyTang opened this issue Sep 25, 2024 · 2 comments
Open

Request for support with migration to wdi5 and custom matchers #643

TrittyTang opened this issue Sep 25, 2024 · 2 comments
Labels

Comments

@TrittyTang
Copy link

We have been using opa-e2e for E2E test automation for the past 3 years, and have developed custom matchers such as bindingContextPropertyStrictEquals and cSSClassStrictEquals, as well as a custom matcher function. Here are the examples

        selector: {
          controlType: 'sap.m.Button',
          searchOpenDialogs: true,
          // custom 
          bindingContextPropertyStrictEquals: [
            {
              model: 'portal',
              path: 'TEXT',
              value: sText
            },
            {
              model: 'portal',
              path: 'EXTENSION_POINT',
              value: sExtensionPoint
            }
          ],
          // custom
          cSSClassStrictEquals: {
            className: `sapMMessageBoxBtn${sAction}`
          },
          // custom
          matchers: {
            function: function (oButton, sMessageBoxType) {
              const bMessageBoxButton = oButton.getId().includes('mbox-btn-')
              const bExpectedMessageBoxType = !!oButton.getParent()?.hasStyleClass(`sapMMessageBox${sMessageBoxType}`)
              return bMessageBoxButton && bExpectedMessageBoxType
            },
            args: {
              sMessageBoxType
            }
          }
        }
      }

We are now exploring the possibility of migrating to wdi5 and are wondering if it is possible to use/support custom matchers in this transition. Any assistance or guidance on this matter would be greatly appreciated. Thank you.

@Siolto
Copy link
Collaborator

Siolto commented Sep 25, 2024

Hi @TrittyTang

currently we never thought about the possibility to add custom matchers to wdi5. We probably would have to add them to the RecordReplayAPI. Let me think about that.

At the moment we are all hard pressed on time and are focusing on the wdioV9 support so it could take some time.

Copy link

hey 👋 - silence for 30 days 🤐 ... anybody? 😀

@github-actions github-actions bot added the stale label Oct 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants