<commit_before>import testUsers from '@webex/test-helper-test-users';
import {expect} from 'chai';

describe('samples', () => {
  describe('browser-call-with-screenshare', () => {
    describe('normal dialing', () => {
      let mccoy, spock;

      const browserSpock = browser.select('browserSpock');
      const browserMccoy = browser.select('browserMccoy');

      before('create test users', () => testUsers.create({count: 2})
        .then((users) => {
          [spock, mccoy] = users;
          // Adding pause to let test users propagate through integration
          browser.pause(2500);
        }));

      before('reload browser', () => {
        browser.refresh();
      });

      it('loads the app', () => {
        browserMccoy.pause(30000);
        browser.url('/browser-call-with-screenshare');
        browser.waitForExist('#access-token', 1500);
      });

      it('connects mccoy\'s browser', () => {
        expect(browserMccoy.getTitle()).to.equal('Sample: Local Screensharing');
        browserMccoy.setValue('#access-token', mccoy.token.access_token);
        browserMccoy.click('#connect');
        browserMccoy.waitForExist('.listening');
      });

      it('connects spock\'s browser', () => {
        expect(browserSpock.getTitle()).to.equal('Sample: Local Screensharing');
        browserSpock.setValue('#access-token', spock.token.access_token);
        browserSpock.click('#connect');
        browserSpock.waitForExist('.listening');
      });

      it('places call from spock to mccoy', () => {
        browserSpock.setValue('[placeholder="Person ID or Email Address or SIP URI or Room ID"]', mccoy.emailAddress);
        browserSpock.click('[title="dial"]');

        browserSpock.waitUntil(() => (browserSpock.getText('#call-status-local') === 'IN_MEETING'), 10000, 'Timed-out waiting for local user to connect to meeting');
      });

      it('joins the call on mccoy', () => {
        browserMccoy.waitUntil(() => {
          try {
            const alerttext = browserMccoy.alertText();

            return alerttext === 'Answer incoming call';<commit_msg>test(samples): add more wait for h264<commit_after>import testUsers from '@webex/test-helper-test-users';
import {expect} from 'chai';

describe('samples', () => {
  describe('browser-call-with-screenshare', () => {
    describe('normal dialing', () => {
      let mccoy, spock;

      const browserSpock = browser.select('browserSpock');
      const browserMccoy = browser.select('browserMccoy');

      before('create test users', () => testUsers.create({count: 2})
        .then((users) => {
          [spock, mccoy] = users;
          // Adding pause to let test users propagate through integration
          browser.pause(2500);
        }));

      it('pauses and waits for h264 to download', () => {
        browser.refresh();
        browserMccoy.pause(30000);
        browser.refresh();
        browserMccoy.pause(30000);
        browser.refresh();
      });

      it('loads the app', () => {
        browser.url('/browser-call-with-screenshare');
        browser.waitForExist('#access-token', 1500);
      });

      it('connects mccoy\'s browser', () => {
        expect(browserMccoy.getTitle()).to.equal('Sample: Local Screensharing');
        browserMccoy.setValue('#access-token', mccoy.token.access_token);
        browserMccoy.click('#connect');
        browserMccoy.waitForExist('.listening');
      });

      it('connects spock\'s browser', () => {
        expect(browserSpock.getTitle()).to.equal('Sample: Local Screensharing');
        browserSpock.setValue('#access-token', spock.token.access_token);
        browserSpock.click('#connect');
        browserSpock.waitForExist('.listening');
      });

      it('places call from spock to mccoy', () => {
        browserSpock.setValue('[placeholder="Person ID or Email Address or SIP URI or Room ID"]', mccoy.emailAddress);
        browserSpock.click('[title="dial"]');

        browserSpock.waitUntil(() => (browserSpock.getText('#call-status-local') === 'IN_MEETING'), 10000, 'Timed-out waiting for local user to connect to meeting');
      });

      it('joins the call on mccoy', () => {
        browserMccoy.waitUntil(() => {
          try {
            const alerttext = browserMccoy.alertText();

            return alerttext === 'Answer incoming call';
{'fraction_non_alphanumeric': 0.1628927911275416, 'fraction_numerical': 0.01132162661737523, 'mean_word_length': 2.903516681695221, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 29, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3441490', 'n_tokens_mistral': 1319, 'n_tokens_neox': 1256, 'n_words': 246}