playwright/packages/html-reporter/src/testResultView.css
Andrey Lushnikov ba0c7e679b
feat(test-runner): support expect.soft (#11800)
Soft expects will still fail the test, but will not abort it's execution. As a consequence of this:
-  `TestResult` now might have multiple errors, which is reflected with a new `testResult.erros: TestError[]` field.
- `TestInfo` now might have multiple errors as well, which is reflected with a new `testInfo.errors: TestError[]` field.

Fixes #7819
2022-02-02 18:33:51 -08:00

84 lines
1.7 KiB
CSS

/*
Copyright (c) Microsoft Corporation.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
.test-result {
flex: auto;
display: flex;
flex-direction: column;
margin-bottom: 24px;
}
.test-result .tabbed-pane .tab-content {
display: flex;
align-items: center;
justify-content: center;
}
.test-result > div {
flex: none;
}
.test-result video,
.test-result img {
flex: none;
box-shadow: var(--box-shadow-thick);
margin: 24px auto;
min-width: 200px;
max-width: 80%;
}
.test-result-path {
padding: 0 0 0 5px;
color: var(--color-fg-muted);
}
.test-result-error-message {
white-space: pre;
font-family: monospace;
overflow: auto;
flex: none;
padding: 0;
background-color: var(--color-canvas-subtle);
border-radius: 6px;
padding: 16px;
line-height: initial;
margin-bottom: 6px;
}
.test-result-counter {
border-radius: 12px;
color: var(--color-canvas-default);
padding: 2px 8px;
}
@media(prefers-color-scheme: light) {
.test-result-counter {
background: var(--color-scale-gray-5);
}
}
@media(prefers-color-scheme: dark) {
.test-result-counter {
background: var(--color-scale-gray-3);
}
}
@media only screen and (max-width: 600px) {
.test-result {
padding: 0 !important;
}
}