Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

Commit

Permalink
WIP: Redact buttons on all pages in Edge to avoid flaky diffs
Browse files Browse the repository at this point in the history
  • Loading branch information
acdvorak committed Nov 13, 2018
1 parent 0a6f375 commit 5bd2940
Show file tree
Hide file tree
Showing 13 changed files with 47 additions and 49 deletions.
48 changes: 24 additions & 24 deletions test/screenshot/golden.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@
</script>
</head>

<body class="test-container">
<body class="test-container test-container--edge-fonts">
<main class="test-viewport test-viewport--gridlines test-viewport--center">

<button class="test-snackbar-open-button" data-test-snackbar-id="test-snackbar--with-action" autofocus>Open snackbar with action</button>
<button class="test-snackbar-open-button test-font--redact-all" data-test-snackbar-id="test-snackbar--with-action" autofocus>Open snackbar with action</button>

<div class="mdc-snackbar mdc-snackbar--open"
id="test-snackbar--with-action"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@
</script>
</head>

<body class="test-container">
<body class="test-container test-container--edge-fonts">
<main class="test-viewport test-viewport--gridlines test-viewport--center">

<button class="test-snackbar-open-button" data-test-snackbar-id="test-snackbar--no-action" autofocus>Open snackbar without action</button>
<button class="test-snackbar-open-button test-font--redact-all" data-test-snackbar-id="test-snackbar--no-action" autofocus>Open snackbar without action</button>

<div class="mdc-snackbar mdc-snackbar--open"
id="test-snackbar--no-action"
Expand Down
4 changes: 2 additions & 2 deletions test/screenshot/spec/mdc-snackbar/classes/leading.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@
</script>
</head>

<body class="test-container">
<body class="test-container test-container--edge-fonts">
<main class="test-viewport test-viewport--gridlines test-viewport--center">

<button class="test-snackbar-open-button" data-test-snackbar-id="test-snackbar--leading" autofocus>Open leading snackbar</button>
<button class="test-snackbar-open-button test-font--redact-all" data-test-snackbar-id="test-snackbar--leading" autofocus>Open leading snackbar</button>

<div class="mdc-snackbar mdc-snackbar--leading mdc-snackbar--open"
id="test-snackbar--leading"
Expand Down
4 changes: 2 additions & 2 deletions test/screenshot/spec/mdc-snackbar/classes/stacked.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@
</script>
</head>

<body class="test-container">
<body class="test-container test-container--edge-fonts">
<main class="test-viewport test-viewport--gridlines test-viewport--center">

<button class="test-snackbar-open-button" data-test-snackbar-id="test-snackbar--stacked" autofocus>Open stacked snackbar</button>
<button class="test-snackbar-open-button test-font--redact-all" data-test-snackbar-id="test-snackbar--stacked" autofocus>Open stacked snackbar</button>

<div class="mdc-snackbar mdc-snackbar--stacked mdc-snackbar--open"
id="test-snackbar--stacked"
Expand Down
4 changes: 2 additions & 2 deletions test/screenshot/spec/mdc-snackbar/classes/wide.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@
</script>
</head>

<body class="test-container">
<body class="test-container test-container--edge-fonts">
<main class="test-viewport test-viewport--gridlines test-viewport--center">

<button class="test-snackbar-open-button" data-test-snackbar-id="test-snackbar--wide" autofocus>Open wide snackbar</button>
<button class="test-snackbar-open-button test-font--redact-all" data-test-snackbar-id="test-snackbar--wide" autofocus>Open wide snackbar</button>

<div class="mdc-snackbar mdc-snackbar--wide mdc-snackbar--open"
id="test-snackbar--wide"
Expand Down
4 changes: 1 addition & 3 deletions test/screenshot/spec/mdc-snackbar/mixins/elevation.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,7 @@
<body class="test-container test-container--edge-fonts">
<main class="test-viewport test-viewport--gridlines test-viewport--center">

<button class="test-snackbar-open-button" data-test-snackbar-id="test-snackbar" autofocus>
Open <span class="test-font--redact-all">custom</span> elevation snackbar
</button>
<button class="test-snackbar-open-button test-font--redact-all" data-test-snackbar-id="test-snackbar" autofocus>Open custom elevation snackbar</button>

<div class="mdc-snackbar mdc-snackbar--open custom-snackbar--elevation"
id="test-snackbar"
Expand Down
4 changes: 2 additions & 2 deletions test/screenshot/spec/mdc-snackbar/mixins/fill-color.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@
</script>
</head>

<body class="test-container">
<body class="test-container test-container--edge-fonts">
<main class="test-viewport test-viewport--gridlines test-viewport--center">

<button class="test-snackbar-open-button" data-test-snackbar-id="test-snackbar" autofocus>Open custom fill-color snackbar</button>
<button class="test-snackbar-open-button test-font--redact-all" data-test-snackbar-id="test-snackbar" autofocus>Open custom fill-color snackbar</button>

<div class="mdc-snackbar mdc-snackbar--open custom-snackbar--fill-color"
id="test-snackbar"
Expand Down
4 changes: 2 additions & 2 deletions test/screenshot/spec/mdc-snackbar/mixins/label-ink-color.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@
</script>
</head>

<body class="test-container">
<body class="test-container test-container--edge-fonts">
<main class="test-viewport test-viewport--gridlines test-viewport--center">

<button class="test-snackbar-open-button" data-test-snackbar-id="test-snackbar" autofocus>Open custom label-ink-color snackbar</button>
<button class="test-snackbar-open-button test-font--redact-all" data-test-snackbar-id="test-snackbar" autofocus>Open custom label-ink-color snackbar</button>

<div class="mdc-snackbar mdc-snackbar--open custom-snackbar--label-ink-color"
id="test-snackbar"
Expand Down
4 changes: 2 additions & 2 deletions test/screenshot/spec/mdc-snackbar/mixins/max-width.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@
</script>
</head>

<body class="test-container">
<body class="test-container test-container--edge-fonts">
<main class="test-viewport test-viewport--gridlines test-viewport--center">

<button class="test-snackbar-open-button" data-test-snackbar-id="test-snackbar" autofocus>Open custom max-width snackbar</button>
<button class="test-snackbar-open-button test-font--redact-all" data-test-snackbar-id="test-snackbar" autofocus>Open custom max-width snackbar</button>

<div class="mdc-snackbar mdc-snackbar--open custom-snackbar--max-width"
id="test-snackbar"
Expand Down
4 changes: 2 additions & 2 deletions test/screenshot/spec/mdc-snackbar/mixins/min-width.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@
</script>
</head>

<body class="test-container">
<body class="test-container test-container--edge-fonts">
<main class="test-viewport test-viewport--gridlines test-viewport--center">

<button class="test-snackbar-open-button" data-test-snackbar-id="test-snackbar" autofocus>Open custom min-width snackbar</button>
<button class="test-snackbar-open-button test-font--redact-all" data-test-snackbar-id="test-snackbar" autofocus>Open custom min-width snackbar</button>

<div class="mdc-snackbar mdc-snackbar--open custom-snackbar--min-width"
id="test-snackbar"
Expand Down
4 changes: 2 additions & 2 deletions test/screenshot/spec/mdc-snackbar/mixins/shape-radius.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@
</script>
</head>

<body class="test-container">
<body class="test-container test-container--edge-fonts">
<main class="test-viewport test-viewport--gridlines test-viewport--center">

<button class="test-snackbar-open-button" data-test-snackbar-id="test-snackbar" autofocus>Open custom shape-radius snackbar</button>
<button class="test-snackbar-open-button test-font--redact-all" data-test-snackbar-id="test-snackbar" autofocus>Open custom shape-radius snackbar</button>

<div class="mdc-snackbar mdc-snackbar--open custom-snackbar--shape-radius"
id="test-snackbar"
Expand Down
4 changes: 2 additions & 2 deletions test/screenshot/spec/mdc-snackbar/mixins/viewport-margin.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@
</script>
</head>

<body class="test-container">
<body class="test-container test-container--edge-fonts">
<main class="test-viewport test-viewport--gridlines test-viewport--center">

<button class="test-snackbar-open-button" data-test-snackbar-id="test-snackbar" autofocus>Open custom viewport-margin snackbar</button>
<button class="test-snackbar-open-button test-font--redact-all" data-test-snackbar-id="test-snackbar" autofocus>Open custom viewport-margin snackbar</button>

<div class="mdc-snackbar mdc-snackbar--open custom-snackbar--viewport-margin"
id="test-snackbar"
Expand Down

0 comments on commit 5bd2940

Please sign in to comment.