blob: 4b50e78af4ff5da613e601aa10f8766776078b58 [file] [log] [blame]
import { browser, by, protractor, $, element, ProtractorExpectedConditions } from 'protractor';
describe('basic e2e test with loading', function(): void {
let EC: ProtractorExpectedConditions = protractor.ExpectedConditions;
describe('home', function(): void {
browser.get('/');
it('should load quick access', function(): void {
expect(browser.getTitle()).toBe('Quick access');
// Waits for the element 'td-loading' to not be present on the dom.
browser.wait(EC.not(EC.presenceOf($('td-loading'))), 10000)
.then(() => {
// checks if elements were rendered
expect(element(by.id('dashboard-favorites-card')).isPresent()).toBe(true);
});
});
});
});