Visitar URL original
use screenshot test to capture scenes for components by annieyw · Pull Request #766 · angular/material.angular.io · GitHub
The Wayback Machine - https://web.archive.org/web/20201018233639/https://github.com/angular/material.angular.io/pull/766
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use screenshot test to capture scenes for components #766

Merged
merged 9 commits into from Jun 2, 2020

Conversation

@annieyw
Copy link
Collaborator

@annieyw annieyw commented May 28, 2020

No description provided.

@googlebot googlebot added the cla: yes label May 28, 2020
@annieyw annieyw force-pushed the annieyw:proj branch from 6a3de06 to d6d2895 May 28, 2020
@annieyw annieyw requested review from atscott and mmalerba May 28, 2020
@annieyw annieyw force-pushed the annieyw:proj branch 2 times, most recently from 6caab7f to c609b41 May 28, 2020
@annieyw annieyw marked this pull request as ready for review May 29, 2020
@annieyw annieyw force-pushed the annieyw:proj branch from c609b41 to 9a8df6e May 29, 2020
Copy link
Collaborator

@mmalerba mmalerba left a comment

Still need to do a more thorough review, but here's some initial comments

scenes/e2e/screenshot.ts Outdated Show resolved Hide resolved
scenes/e2e/screenshot.ts Outdated Show resolved Hide resolved
scenes/e2e/screenshot.ts Outdated Show resolved Hide resolved
scenes/e2e/src/app.e2e-spec.ts Outdated Show resolved Hide resolved
scenes/e2e/screenshot.ts Outdated Show resolved Hide resolved
scenes/e2e/screenshot.ts Outdated Show resolved Hide resolved
scenes/src/app/app.component.ts Outdated Show resolved Hide resolved
scenes/src/app/app.component.ts Outdated Show resolved Hide resolved
scenes/src/app/scene-viewer/scene-viewer.ts Outdated Show resolved Hide resolved
scenes/src/app/scenes/button/button-scene.scss Outdated Show resolved Hide resolved
scenes/src/app/scenes/button/button-scene.scss Outdated Show resolved Hide resolved
scenes/src/app/scenes/button/button-scene.scss Outdated Show resolved Hide resolved
scenes/src/styles.scss Outdated Show resolved Hide resolved
scenes/src/styles.scss Outdated Show resolved Hide resolved
@annieyw
Copy link
Collaborator Author

@annieyw annieyw commented May 29, 2020

Moved screenshots to assets
Addressed comments/cleaned up code
PTAL

package.json Outdated Show resolved Hide resolved
scenes/e2e/src/app.e2e-spec.ts Outdated Show resolved Hide resolved
scenes/src/app/scene-viewer/scene-viewer.ts Outdated Show resolved Hide resolved
scenes/src/app/scenes/checkbox/checkbox-scene.scss Outdated Show resolved Hide resolved
scenes/src/app/scenes/checkbox/checkbox-scene.html Outdated Show resolved Hide resolved
Copy link
Collaborator

@mmalerba mmalerba left a comment

One more round of nits. I think we'll want to iterate on the exact look of some of these scenes, but that's something we can do after this PR goes in

scenes/e2e/src/app.e2e-spec.ts Outdated Show resolved Hide resolved
scenes/e2e/screenshot.ts Outdated Show resolved Hide resolved
scenes/e2e/screenshot.ts Outdated Show resolved Hide resolved
scenes/e2e/src/app.e2e-spec.ts Outdated Show resolved Hide resolved
scenes/e2e/src/app.po.ts Outdated Show resolved Hide resolved
@annieyw annieyw force-pushed the annieyw:proj branch from fb43175 to d0aaf1b Jun 1, 2020
scenes/e2e/src/app.e2e-spec.ts Outdated Show resolved Hide resolved
scenes/src/app/scenes/button/button-scene.html Outdated Show resolved Hide resolved
scenes/src/app/scenes/input/input-scene.scss Outdated Show resolved Hide resolved
@annieyw annieyw force-pushed the annieyw:proj branch from d0aaf1b to aa1db7b Jun 2, 2020
Copy link
Collaborator

@mmalerba mmalerba left a comment

LGTM

@mmalerba
Copy link
Collaborator

@mmalerba mmalerba commented Jun 2, 2020

As discussed on slack, lets move the addition of the individual scenes into their own PRs and have this PR be just the framework for generating the images

@atscott
atscott approved these changes Jun 2, 2020
@@ -17,7 +17,8 @@ import {ActivatedRoute} from '@angular/router';
encapsulation: ViewEncapsulation.None,
selector: 'app-scene-viewer',
templateUrl: './scene-viewer.html',
styleUrls: ['./scene-viewer.scss']
styleUrls: ['./scene-viewer.scss'],
host: { 'id': 'viewer', '[style.filter]': this.cssFilter },

This comment has been minimized.

@mmalerba

mmalerba Jun 2, 2020
Collaborator

host: {
  'id': 'viewer', // is this really necessary though? can you query by tag name?
  '[style.filter]': 'cssFilter',
},
@annieyw annieyw force-pushed the annieyw:proj branch from ea8f9c9 to 93b0b81 Jun 2, 2020
@mmalerba mmalerba merged commit 323f126 into angular:master Jun 2, 2020
4 checks passed
4 checks passed
ci/circleci: build Your tests passed on CircleCI!
Details
ci/circleci: lint Your tests passed on CircleCI!
Details
ci/circleci: test Your tests passed on CircleCI!
Details
cla/google All necessary CLAs are signed
@annieyw annieyw deleted the annieyw:proj branch Jun 3, 2020
hadzhiyski pushed a commit to hadzhiyski/material.angular.io that referenced this pull request Jun 15, 2020
Co-authored-by: Annie Wang <annieyw@google.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

4 participants
You can’t perform that action at this time.