Skip to content

Commit 4c16704

Browse files
committed
Add basic Cypress test
1 parent 867ce82 commit 4c16704

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// Currently exists only for LA Rebellion
2+
describe('Collection Filmmakers Listing Page', () => {
3+
it('Visits the `L.A. Rebellion` Filmmakers Listing page', () => {
4+
cy.visit('/collections/la-rebellion/filmmaker')
5+
cy.getByData('breadcrumb').should('be.visible')
6+
cy.getByData('page-heading').should('be.visible')
7+
cy.getByData('page-listings').should('be.visible')
8+
cy.percySnapshot('collectionFilmmakersListPage', { widths: [768, 992, 1200] })
9+
})
10+
})

pages/collections/la-rebellion/filmmakers/index.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,12 @@ const pageClasses = computed(() => {
163163
:section-title="page.title"
164164
:section-summary="page.summary"
165165
theme="paleblue"
166+
data-test="page-heading"
166167
>
167-
<SectionStaffArticleList :items="parsedFilmmakerListings" />
168+
<SectionStaffArticleList
169+
:items="parsedFilmmakerListings"
170+
data-test="page-listings"
171+
/>
168172
169173
<SectionPagination
170174
v-if="

0 commit comments

Comments
 (0)