Commit Graph

71 Commits

Author SHA1 Message Date
Paul Gschwendtner 154f54ec14 build: run chrome headless in travis (#5126) 2017-06-14 14:26:52 -07:00
Paul Gschwendtner b3c75bb4b0 build: run fewer browsers on saucelabs (#5045) 2017-06-12 13:37:16 -07:00
Paul Gschwendtner 3eb7bdd792 build: duplicate update of jasmine timeout interval (#5085) 2017-06-12 10:52:33 -07:00
Kristiyan Kostadinov 8e6bee8116 chore: reorganize e2e test files (#5032)
* Renames the e2e test file to match the pattern of `{{component}}-e2e.spec.ts`.
* Flattens the directory structure in the `e2e` directory. Having a separate dir for each component was overkill since only have one file per component.
* Fixes some inconsistent code styles in the Protractor config.

Fixes #5030.
2017-06-09 16:09:08 -07:00
Paul Gschwendtner 21f764c347 build: report ngOnDestroy exceptions in unti tests (#5036)
Monkey-patches TestBed.resetTestingModule such that any errors that occur during component destruction are thrown instead of silently logged. Also runs TestBed.resetTestingModule after each unit test.

 Without this patch, the combination of two behaviors is problematic for Angular Material:
 - TestBed.resetTestingModule catches errors thrown on fixture destruction and logs them without the errors ever being thrown. This means that any component errors that occur in ngOnDestroy can encounter errors silently and still pass unit tests.
 - TestBed.resetTestingModule is only called *before* a test is run, meaning that even *if* the aforementioned errors were thrown, they would be reported for the wrong test (the test that's about to start, not the test that just finished).
2017-06-09 16:09:02 -07:00
Kristiyan Kostadinov 6601e3d873 build: fix 404s when debugging unit tests (#4965)
* Fixes a bunch of 404s that were being logged when debugging unit tests. It was because we're not serving the source maps for RxJS and Hammer.
* Removes a few redundant options from the Karma config, because they're the same as the defaults.
2017-06-05 14:48:42 -07:00
Paul Gschwendtner 32c3ef4a69 build: faster building of tests (#4509) 2017-05-12 14:30:12 -07:00
Paul Gschwendtner a7ca7c1f24 build: build cdk package (#4111)
* Introduces another package called `@angular/cdk`. This package is
currently empty but all the logic for SASS, HTML, TypeScript and tests
is ready.
2017-04-17 15:18:16 -07:00
Paul Gschwendtner 3545df7c4f build: fix karma pattern warnings (#4057)
* Fixes the karma pattern warnings. Those showed up because there was a pattern that included all files (and watched them).
2017-04-12 14:19:14 -07:00
Jeremy Elbourn e7a4a03d68 fix: use correct access tokens for artifact publishing (#3860) 2017-04-01 02:51:22 +08:00
Jeremy Elbourn 71229756a5 build: update packaging to match angular/angular (#3751)
* build: restructure release output

* build: inline metadata.json resources

* build: output re-export meatadata.json file in package root
2017-03-24 14:06:45 -07:00
Paul Gschwendtner 4d4a63e641 fix: coverage issue with saucelabs (#3540)
* Saucelabs seems to have issues with Edge and the `karma-coverage` plugin.

* Running on Browserstack seems to be work without any flakiness and also makes the build faster (runs less browsers than on saucelabs)
2017-03-10 10:41:49 -08:00
Paul Gschwendtner 23ee63393f build: fix karma console log (#3484)
Karma recently introduced a breaking change, that **hasn't** been noted (https://github.com/karma-runner/karma/issues/2582).

Karma doesn't show any `console.log` calls anymore, because the priority order of the `LogLevel`'s has been changed. The default log leve for the `browserConsoleLog` does no longer include the `LOG` log-level.
2017-03-10 10:39:01 -08:00
Paul Gschwendtner bbe9519535 build: upload coverage to firebase (#3435)
* Introduces a gulp task that will run on Travis Push builds and will upload coverage results to a Firebase database.

Closes #128.
2017-03-08 18:09:57 -08:00
Paul Gschwendtner 478a2e4269 chore(focus-classes): fix failing tests when browser is blurred (#2935)
* chore(focus-classes): fix failing tests when browser is blurred

On Saucelabs, browsers will run simultaneously and therefore can't focus all browser windows at the same time.
This is problematic when testing focus states. Chrome and Firefoxonly fire FocusEvents when the window is focused. This issue also appears locally.

Fixes #2903.

* Extract patch logic into extra function
2017-02-09 07:02:24 +08:00
Paul Gschwendtner e5ca565a5f chore: add safari10 to browser-providers (#2873)
* This adds Safari v10 (from Saucelabs) to the browser-providers and marks it as an optional run in the CI.

As requested in https://github.com/angular/material2/pull/2823
2017-02-06 12:04:57 -08:00
Paul Gschwendtner d445007d53 build: simplify karma configuration (#2823) 2017-01-30 12:11:02 -08:00
Elad Bezalel 408c58d569 style(branding): branding consistency fixup (#2805)
fixes #2803
2017-01-26 15:35:39 -08:00
Paul Gschwendtner 4ab6f30f50 chore(e2e): update to latest protractor version (#2608)
* chore(e2e): update to latest protractor version

* Updates to the latest Protractor version, which now uses Selenium V3
* The new types for Protractor v5 include the fix for the missing `chord` function (See https://github.com/DefinitelyTyped/DefinitelyTyped/commit/123690bb2e0f9dac2371084369a8ecf8976cbb34)
* Methods like `innerHtml` have been removed in Protractor v5 (https://github.com/angular/protractor/blob/master/CHANGELOG.md)

* Test later chromedriver version
2017-01-13 14:59:01 -08:00
Paul Gschwendtner 741e7d444d chore: update version of sauce connect (#2553) 2017-01-06 11:32:12 -08:00
Paul Gschwendtner bbe9915342 chore(karma): add support for sourcemaps (#2448) 2017-01-03 13:26:21 -08:00
Paul Gschwendtner 5692c78a09 chore: run e2e tests concurrently in the ci (#2464) 2017-01-03 09:30:26 -08:00
Paul Gschwendtner dccbe41188 chore: switch saucelabs to websocket protocol (#2399)
* Since saucelabs already supports Websockets now and it's faster we should use Websockets here.
  Reference: https://saucelabs.com/blog/sauce-connect-gets-a-speed-boost-websocket-support
2016-12-27 19:34:19 -08:00
Kristiyan Kostadinov 38700e056b test: include all of the necessary CSS in unit tests (#2367)
Includes the missing theme CSS in the unit tests and removes some of the styles that were used to simulate it.

Fixes #2358.
2016-12-23 10:30:30 -08:00
Paul Gschwendtner dcfe0b02da chore: update test browsers to latest version (#2297)
* Updates the Unit test browsers to the `latest` version on Saucelabs
* No longer records videos & screenshots on the e2e mode, because this seems to slow the builds significant.
2016-12-20 10:47:46 -08:00
Jeremy Elbourn 2897b9b011 chore: disable color-constrast check for axe (#2226) 2016-12-15 11:15:26 -08:00
Topher Fangio ba85883e64 feat(chips): add keyboard interaction. (#2046)
Add basic focus/keyboard support for chips.

 - Up/down arrows navigate chips.
 - Clicking a chip properly focuses it for subsequent keyboard
   navigation.
 - More demos.

Confirmed AoT compatibility.

References #120.
2016-12-13 18:55:44 -08:00
Paul Gschwendtner c5fb94f2a4 chore: run a11y audits on protractor (#2010)
* chore: run a11y audits on protractor

* Fixes accessibility issue in grid-list with `role="listitem"`
* Adds protractor plugin to run aXe-core accessibility audits
* Fixes a bunch of a11y issues in the e2e app to make the aXe audits green

* Force menu y-positions because viewport might be different on Selenium browsers.

* Navigiation links should be hidden by default because those can interfere with the tests.
2016-12-13 12:10:31 -08:00
Kristiyan Kostadinov 66c25be710 build: avoid multiple refreshes when running unit tests locally (#2162)
Avoids Karma running tests multiple times when developing locally, due to it triggering a test run whenever a new file is written to disk. This change switches to manually spawning a Karma server and then running the tests by depending on Gulp's API instead.
2016-12-13 12:05:42 -08:00
Paul Gschwendtner c5920513a1 chore: make tunnel filenames consistent (#2072)
* Currently the tunnel `setup/wait/stop` files always have different names like `sauce_connect_block` or just `waitfor_tunnel`.
2016-12-05 19:08:01 -08:00
Kara 4331b2749f feat(select): support fallback positions (#1873) 2016-11-16 10:43:11 -08:00
Paul Gschwendtner 8b08f693df chore: update iOS unit test configuration (#1841) 2016-11-14 16:50:47 -08:00
Jeremy Elbourn 175f2d867a chore: fix unit broken unit tests and CI not running them (#1834)
* fix: unbreak unit tests

* Revert "chore(build): fix karma not exiting properly (#1741)"

This reverts commit 77701cc1ae.
2016-11-11 16:09:00 -08:00
Kristiyan Kostadinov 77701cc1ae chore(build): fix karma not exiting properly (#1741)
* Fixes the Karma tasks not exiting properly. This is an issue, because doing a keyboard interrupt doesn't stop the Gulp watchers that are going on in the background.
* Increase the time that Karma waits before starting to run tests. This should help mitigate the multiple reloads when running unit tests locally.

Related to #1681.
2016-11-11 10:44:56 -08:00
mmalerba 4a0f8206a7 chore: disable Android 4.1-4.3 tests (#1668) 2016-11-03 15:58:26 -07:00
Paul Gschwendtner 673e7ccc8e chore(saucelabs): fix microsoft edge version (#1508) 2016-10-17 12:06:33 +02:00
Hans b5c8c63a27 feat(packaging): move packaging to a single "@angular/material" (#1286) 2016-09-22 13:24:12 -07:00
Jeremy Elbourn cdd8e34625 chore: reduce SauceLabs + Edge flakiness (#1216) 2016-09-15 14:16:27 -07:00
Hans 818290ba75 refactor(all): add index.ts, and build using es2015 and UMD bundles. (#1158) 2016-09-01 22:04:14 -07:00
Kara 4f2bc66904 chore(release): update versions for RC.6 (#1149) 2016-09-01 10:14:38 -07:00
Hans abcc6af54d build: move from angular-cli to gulp (#948)
Fixed #1636.
2016-08-19 10:59:45 -07:00
Jeremy Elbourn ca351b2a52 feat: add NgModules for material (#950) 2016-08-08 11:31:47 -07:00
Paul Gschwendtner 25b4f21110 feat(slide-toggle): add drag functionality to thumb (#750) 2016-07-14 15:11:50 -07:00
Ivey Padgett 8354750a45 feat(md-slider): initial version for md-slider (#779) 2016-07-14 14:43:00 -07:00
Jeremy Elbourn fda031f4ec chore: bump protractor timeout time (#825)
chore: bump protractor jasmine timeout time
2016-07-06 16:37:45 -07:00
Jeremy Elbourn 850ac675ee chore: update ng cli, make e2e run sucessfully 2016-06-24 11:34:49 -07:00
Sendil Kumar N 632e90cb73 protractor-accessibility-plugin for audit on CI (#521) 2016-05-26 09:43:14 -07:00
Paul Gschwendtner 388f55c172 chore(): use core-js instead of es6-shim (#505)
Replace es6-shim, es6-promise and reflect-metadata with core-js, because it coveres all required dependencies / shims in one single dependency / library.

Closes #477.
2016-05-24 08:56:21 -07:00
trik e8cf256789 test(): Remove main method wrapper from all test files (#494)
Closes #480
2016-05-23 08:33:58 -07:00
Hans Larsen 6a84fc556c test(e2e): add support for e2e app and running tests. 2016-05-19 17:06:36 -07:00