This repository has been archived by the owner on Feb 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix "Back to results" link and remove grey background from single res…
…ults page (#1977) Co-authored-by: Olga Bulat <obulat@gmail.com>
- Loading branch information
Showing
75 changed files
with
1,198 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import { Description, Meta, Canvas, Story } from '@storybook/addon-docs' | ||
|
||
import VBackToSearchResultsLink from '~/components/VBackToSearchResultsLink.vue' | ||
|
||
<Meta | ||
title="Components/VBackToSearchResultsLink" | ||
component={VBackToSearchResultsLink} | ||
/> | ||
|
||
export const Template = (args) => ({ | ||
template: `<VBackToSearchResultsLink v-bind="args"/>`, | ||
components: { VBackToSearchResultsLink }, | ||
setup() { | ||
return { args } | ||
}, | ||
}) | ||
|
||
# VBackToSearchResultsLink | ||
|
||
<Description of={VBackToSearchResultsLink} /> | ||
|
||
<Canvas> | ||
<Story name="Default" args={{ href: '#' }}> | ||
{Template.bind({})} | ||
</Story> | ||
</Canvas> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
test/playwright/visual-regression/pages/pages-single-result.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
import { test } from '@playwright/test' | ||
|
||
import { removeHiddenOverflow } from '~~/test/playwright/utils/page' | ||
import breakpoints from '~~/test/playwright/utils/breakpoints' | ||
import { | ||
closeFilters, | ||
dismissTranslationBanner, | ||
enableNewHeader, | ||
goToSearchTerm, | ||
isPageDesktop, | ||
languageDirections, | ||
openFirstResult, | ||
} from '~~/test/playwright/utils/navigation' | ||
|
||
import { supportedMediaTypes } from '~/constants/media' | ||
|
||
test.describe.configure({ mode: 'parallel' }) | ||
|
||
for (const mediaType of supportedMediaTypes) { | ||
for (const dir of languageDirections) { | ||
test.describe(`${mediaType} ${dir} single-result page snapshots`, () => { | ||
breakpoints.describeEvery(({ expectSnapshot }) => { | ||
test.beforeEach(async ({ page }) => { | ||
await enableNewHeader(page) | ||
await goToSearchTerm(page, 'birds', { dir }) | ||
if (isPageDesktop(page)) await closeFilters(page) | ||
await dismissTranslationBanner(page) | ||
}) | ||
|
||
test(`from search results`, async ({ page }) => { | ||
// This will include the "Back to results" link. | ||
await openFirstResult(page, mediaType) | ||
await removeHiddenOverflow(page) | ||
await expectSnapshot( | ||
`${mediaType}-${dir}-from-search-results`, | ||
page, | ||
{ fullPage: true } | ||
) | ||
}) | ||
}) | ||
}) | ||
} | ||
} |
Binary file added
BIN
+633 KB
...ges-single-result.spec.ts-snapshots/audio-ltr-from-search-results-2xl-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+612 KB
...ages-single-result.spec.ts-snapshots/audio-ltr-from-search-results-lg-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+581 KB
...ages-single-result.spec.ts-snapshots/audio-ltr-from-search-results-md-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+348 KB
...ages-single-result.spec.ts-snapshots/audio-ltr-from-search-results-sm-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+623 KB
...ages-single-result.spec.ts-snapshots/audio-ltr-from-search-results-xl-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+341 KB
...ages-single-result.spec.ts-snapshots/audio-ltr-from-search-results-xs-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+589 KB
...ges-single-result.spec.ts-snapshots/audio-rtl-from-search-results-2xl-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+569 KB
...ages-single-result.spec.ts-snapshots/audio-rtl-from-search-results-lg-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+538 KB
...ages-single-result.spec.ts-snapshots/audio-rtl-from-search-results-md-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+315 KB
...ages-single-result.spec.ts-snapshots/audio-rtl-from-search-results-sm-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+579 KB
...ages-single-result.spec.ts-snapshots/audio-rtl-from-search-results-xl-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+308 KB
...ages-single-result.spec.ts-snapshots/audio-rtl-from-search-results-xs-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.42 MB
...ges-single-result.spec.ts-snapshots/image-ltr-from-search-results-2xl-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.37 MB
...ages-single-result.spec.ts-snapshots/image-ltr-from-search-results-lg-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.35 MB
...ages-single-result.spec.ts-snapshots/image-ltr-from-search-results-md-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+3.21 MB
...ages-single-result.spec.ts-snapshots/image-ltr-from-search-results-sm-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.4 MB
...ages-single-result.spec.ts-snapshots/image-ltr-from-search-results-xl-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.45 MB
...ages-single-result.spec.ts-snapshots/image-ltr-from-search-results-xs-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.39 MB
...ges-single-result.spec.ts-snapshots/image-rtl-from-search-results-2xl-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.34 MB
...ages-single-result.spec.ts-snapshots/image-rtl-from-search-results-lg-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.32 MB
...ages-single-result.spec.ts-snapshots/image-rtl-from-search-results-md-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+3.18 MB
...ages-single-result.spec.ts-snapshots/image-rtl-from-search-results-sm-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.37 MB
...ages-single-result.spec.ts-snapshots/image-rtl-from-search-results-xl-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.42 MB
...ages-single-result.spec.ts-snapshots/image-rtl-from-search-results-xs-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-2.97 KB
(98%)
...aywright/visual-regression/pages/pages.spec.ts-snapshots/about-ltr-md-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-3.29 KB
(98%)
...aywright/visual-regression/pages/pages.spec.ts-snapshots/about-ltr-sm-linux.png
Oops, something went wrong.
Binary file modified
BIN
-7.95 KB
(95%)
...aywright/visual-regression/pages/pages.spec.ts-snapshots/about-ltr-xs-linux.png
Oops, something went wrong.
Binary file modified
BIN
-261 Bytes
(100%)
...aywright/visual-regression/pages/pages.spec.ts-snapshots/about-rtl-md-linux.png
Oops, something went wrong.
Binary file modified
BIN
-221 Bytes
(100%)
...aywright/visual-regression/pages/pages.spec.ts-snapshots/about-rtl-sm-linux.png
Oops, something went wrong.
Binary file modified
BIN
-3.46 KB
(95%)
...aywright/visual-regression/pages/pages.spec.ts-snapshots/about-rtl-xs-linux.png
Oops, something went wrong.
Binary file modified
BIN
-1.9 KB
(99%)
...sual-regression/pages/pages.spec.ts-snapshots/external-sources-ltr-md-linux.png
Oops, something went wrong.
Binary file modified
BIN
-5.04 KB
(97%)
...sual-regression/pages/pages.spec.ts-snapshots/external-sources-ltr-sm-linux.png
Oops, something went wrong.
Binary file modified
BIN
-9 KB
(95%)
...sual-regression/pages/pages.spec.ts-snapshots/external-sources-ltr-xs-linux.png
Oops, something went wrong.
Binary file modified
BIN
-94 Bytes
(100%)
...sual-regression/pages/pages.spec.ts-snapshots/external-sources-rtl-md-linux.png
Oops, something went wrong.
Binary file modified
BIN
-1.1 KB
(99%)
...sual-regression/pages/pages.spec.ts-snapshots/external-sources-rtl-sm-linux.png
Oops, something went wrong.
Binary file modified
BIN
-4.84 KB
(94%)
...sual-regression/pages/pages.spec.ts-snapshots/external-sources-rtl-xs-linux.png
Oops, something went wrong.
Binary file modified
BIN
-4.06 KB
(98%)
...ht/visual-regression/pages/pages.spec.ts-snapshots/search-help-ltr-md-linux.png
Oops, something went wrong.
Binary file modified
BIN
-1.71 KB
(99%)
...ht/visual-regression/pages/pages.spec.ts-snapshots/search-help-ltr-sm-linux.png
Oops, something went wrong.
Binary file modified
BIN
-5.65 KB
(97%)
...ht/visual-regression/pages/pages.spec.ts-snapshots/search-help-ltr-xs-linux.png
Oops, something went wrong.
Binary file modified
BIN
-160 Bytes
(100%)
...ht/visual-regression/pages/pages.spec.ts-snapshots/search-help-rtl-md-linux.png
Oops, something went wrong.
Binary file modified
BIN
-1.35 KB
(98%)
...ht/visual-regression/pages/pages.spec.ts-snapshots/search-help-rtl-sm-linux.png
Oops, something went wrong.
Binary file modified
BIN
-3.31 KB
(96%)
...ht/visual-regression/pages/pages.spec.ts-snapshots/search-help-rtl-xs-linux.png
Oops, something went wrong.
Binary file modified
BIN
-6.89 KB
(99%)
...wright/visual-regression/pages/pages.spec.ts-snapshots/sources-ltr-md-linux.png
Oops, something went wrong.
Binary file modified
BIN
-3.51 KB
(99%)
...wright/visual-regression/pages/pages.spec.ts-snapshots/sources-ltr-sm-linux.png
Oops, something went wrong.
Binary file modified
BIN
+8.14 KB
(100%)
...wright/visual-regression/pages/pages.spec.ts-snapshots/sources-ltr-xs-linux.png
Oops, something went wrong.
Binary file modified
BIN
-2.82 KB
(99%)
...wright/visual-regression/pages/pages.spec.ts-snapshots/sources-rtl-md-linux.png
Oops, something went wrong.
Binary file modified
BIN
+633 Bytes
(100%)
...wright/visual-regression/pages/pages.spec.ts-snapshots/sources-rtl-sm-linux.png
Oops, something went wrong.
Binary file modified
BIN
+10.5 KB
(100%)
...wright/visual-regression/pages/pages.spec.ts-snapshots/sources-rtl-xs-linux.png
Oops, something went wrong.
Oops, something went wrong.