{"size": 992, "ext": "js", "max_stars_repo_path": "tests/ui-test/src/science-experiments/soil-moisture-sensor.js", "max_stars_repo_name": "Helen09/pxt", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "tests/ui-test/src/science-experiments/soil-moisture-sensor.js", "max_issues_repo_name": "Helen09/pxt", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "tests/ui-test/src/science-experiments/soil-moisture-sensor.js", "max_forks_repo_name": "Helen09/pxt", "max_forks_repo_forks_event_min_datetime": "2019-10-29T06:56:11.000Z", "max_forks_repo_forks_event_max_datetime": "2021-05-25T10:18:12.000Z"}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": 2, "avg_line_length": 30.0606060606, "max_line_length": 93, "alphanum_fraction": 0.6673387097}
import { DomObject } from '../lib/dom-object';
import assert from "assert";
let { scienceExperiments} = require('../lib/css-value');

class SoilMoistureSensor extends DomObject {

    async soilMoistureSensor() {

        console.log('Start test soilMoistureSensor()');
        
        await this.click(scienceExperiments.soilMoistureSensor,scienceExperiments.playVideo);

        await this.switchToNewWindow();
        
        let videoTitle = await this.getText(scienceExperiments.videoTitle);

        assert.equal(videoTitle, 'Science Experiments 04 Soil Moisture Sensor');
        
        console.debug(`The video title of SoilMoistureSensor is "${videoTitle}"`);

        await this.catchScreenShot('soilMoistureSensor');

        await this.closeCurrentWindow();
    }

    test() {
        it('Start learning the "SoilMoistureSensor"', async () => {
            return await this.soilMoistureSensor();
        });
    }

}
export let soilMoistureSensor = new SoilMoistureSensor();