INNER CODE UNIT · JavaScript

ContextPage

Soluto/tweek · e2e/ui/pages/Context/index.js:5

export default class ContextPage {
  searchArea = Selector(dataComp('search-identity'));
  identityTypeInput = this.searchArea.find(dataField('identity-type'));
  identityIdInput = this.searchArea.find(dataField('identity-id'));
  searchButton = this.searchArea.find(dataComp('search'));

  async open(type, id) {
    const identity = new Identity(type, id);

    await t
      .expect(this.searchArea.visible)
      .ok()
      .typeText(this.identityTypeInput, type, { replace: true })
      .typeText(this.identityIdInput, id, { replace: true })
      .click(this.searchButton)
      .expect(identity.details.exists)
      .ok();

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…