19 lines
527 B
JavaScript
19 lines
527 B
JavaScript
/* global browser */
|
|
const assert = require('assert');
|
|
const HomePage = require('./pages/desktop/home_page');
|
|
|
|
describe('Send progress page', function() {
|
|
const homePage = new HomePage();
|
|
beforeEach(function() {
|
|
homePage.open();
|
|
});
|
|
|
|
it('should show progress when a file is uploading', function() {
|
|
browser.chooseFile(homePage.uploadInput, __filename);
|
|
browser.waitForExist(homePage.uploadButton);
|
|
browser.click(homePage.uploadButton);
|
|
|
|
assert.ok(browser.waitForExist(homePage.progress));
|
|
});
|
|
});
|