<commit_before>import * as path from 'path';
import { expect } from 'chai';
import { loadCachedTestBed, takeScreenshot, TestBed } from '../../../puppeteer-tests/util';

describe('status-sk', () => {
  let testBed: TestBed;
  before(async () => {
    testBed = await loadCachedTestBed(path.join(__dirname, '..', '..', 'webpack.config.ts'));
  });

  beforeEach(async () => {
    await testBed.page.goto(`${testBed.baseUrl}/dist/status-sk.html`);
    await testBed.page.setViewport({ width: 1600, height: 1000 });
  });

  it('should render the demo page (smoke test)', async () => {
    expect(await testBed.page.$$('status-sk')).to.have.length(1);
  });

  describe('screenshots', () => {
    it('shows the default view', async () => {
      await takeScreenshot(testBed.page, 'status', 'status-sk');
    });
    it('changes repos', async () => {
      testBed.page.select('#repoSelector', 'infra');
      await takeScreenshot(testBed.page, 'status', 'status-sk_repo_change');
    });
  });
});<commit_msg>[status] Deflake status-sk_repo_change puppeteer test.<commit_after>import * as path from 'path';
import { expect } from 'chai';
import { loadCachedTestBed, takeScreenshot, TestBed } from '../../../puppeteer-tests/util';

describe('status-sk', () => {
  let testBed: TestBed;
  before(async () => {
    testBed = await loadCachedTestBed(path.join(__dirname, '..', '..', 'webpack.config.ts'));
  });

  beforeEach(async () => {
    await testBed.page.goto(`${testBed.baseUrl}/dist/status-sk.html`);
    await testBed.page.setViewport({ width: 1600, height: 1000 });
  });

  it('should render the demo page (smoke test)', async () => {
    expect(await testBed.page.$$('status-sk')).to.have.length(1);
  });

  describe('screenshots', () => {
    it('shows the default view', async () => {
      await takeScreenshot(testBed.page, 'status', 'status-sk');
    });
    it('changes repos', async () => {
      await testBed.page.select('#repoSelector', 'infra');
      await takeScreenshot(testBed.page, 'status', 'status-sk_repo_change');
    });
  });
});
{'fraction_non_alphanumeric': 0.20592520641087908, 'fraction_numerical': 0.008742107819329771, 'mean_word_length': 3.8130841121495327, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6955708', 'n_tokens_mistral': 734, 'n_tokens_neox': 684, 'n_words': 129}