progress-tests.js 527 B

123456789101112131415161718
  1. /* global browser */
  2. const assert = require('assert');
  3. const HomePage = require('./pages/desktop/home_page');
  4. describe('Send progress page', function() {
  5. const homePage = new HomePage();
  6. beforeEach(function() {
  7. homePage.open();
  8. });
  9. it('should show progress when a file is uploading', function() {
  10. browser.chooseFile(homePage.uploadInput, __filename);
  11. browser.waitForExist(homePage.uploadButton);
  12. browser.click(homePage.uploadButton);
  13. assert.ok(browser.waitForExist(homePage.progress));
  14. });
  15. });