"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const puppeteer_text_mapping_1 = require("./puppeteer-text-mapping");
const assert_1 = require("assert");
describe('Selector extraction from puppeteer', () => {
    it('does not extract text from click', () => {
        assert_1.strictEqual(puppeteer_text_mapping_1.extractPuppeteerText('click', ['foo'], undefined), undefined);
    });
    it('extracts text from type', () => {
        assert_1.strictEqual(puppeteer_text_mapping_1.extractPuppeteerText('type', ['.foo', 'hello'], 'bar'), 'hello');
    });
    it('extracts text from evaluate calls', () => {
        assert_1.strictEqual(puppeteer_text_mapping_1.extractPuppeteerText('evaluate', ['foo'], 'bar'), 'bar');
    });
});
