send/test/integration/progress-tests.js

19 lines
535 B
JavaScript
Raw Normal View History

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