2018-10-31 19:31:17 +01:00
|
|
|
/* global browser */
|
2018-10-02 22:15:02 +02:00
|
|
|
const assert = require('assert');
|
2018-10-04 02:39:39 +02:00
|
|
|
const HomePage = require('./pages/desktop/home_page');
|
2018-10-02 22:15:02 +02:00
|
|
|
|
2018-10-04 02:39:39 +02:00
|
|
|
describe('Firefox Send progress page', function() {
|
2018-10-31 19:31:17 +01:00
|
|
|
const homePage = new HomePage();
|
2018-10-04 02:39:39 +02:00
|
|
|
beforeEach(function() {
|
2018-10-31 19:31:17 +01:00
|
|
|
homePage.open();
|
2018-10-02 22:15:02 +02:00
|
|
|
});
|
|
|
|
|
2018-10-31 19:31:17 +01:00
|
|
|
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));
|
2018-10-02 22:15:02 +02:00
|
|
|
});
|
|
|
|
});
|