RSS Git Download  Clone
Raw Blame History
browser.ignoreSynchronization = true;

describe('CompileHtml', () => {

    browser.get(`index.html`);


    const clicker = (button, counter) => {
        const total = 5;
        for(let i =0; i < total - 1; i++) {
            button.click();
            browser.waitForAngular();
        }

        const count = counter.getText();
        expect(count).toEqual(total.toString());
    }

    it('Attribute', (done) => {
        const button = element(by.id('button-attribute'))
        const counter = element(by.id('counter-attribute'));
        clicker(button, counter);
        done();
    });
});