Skip to content

Commit d833fd2

Browse files
committed
Update Cypress test
1 parent d45584d commit d833fd2

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

cypress/e2e/homepage.cy.js

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,19 @@ describe('Website Homepage', () => {
22
it('Visit the Homepage', () => {
33
cy.visit('/')
44
cy.viewport(1200, 1200)
5+
6+
// cy.getByData('homepage-carousel').should('be.visible')
7+
8+
cy.getByData('featured-event-items').should('be.visible')
9+
10+
cy.getByData('quick-link-items').should('be.visible')
11+
12+
cy.getByData('featured-article').should('be.visible')
13+
14+
cy.getByData('featured-collection-items').should('be.visible')
15+
16+
// cy.getByData('preservation-image-slider').should('be.visible')
17+
518
cy.get('.footer-primary.ftva').should('be.visible')
619
cy.get('.footer-links.ftva').should('be.visible')
720
cy.get('.footer-sock.ftva').should('be.visible')
@@ -20,6 +33,6 @@ describe('Website Homepage', () => {
2033
// .should('have.attr', 'href', 'https://www.library.ucla.edu')
2134
// NavPrimary
2235

23-
// cy.percySnapshot({ widths: [768, 992, 1200] })
36+
cy.percySnapshot({ widths: [768, 992, 1200] })
2437
})
2538
})

pages/index.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ useHead({
161161
class="now-showing-items"
162162
:items="parsedNowShowing"
163163
:grid-layout="false"
164+
data-test="featured-event-items"
164165
/>
165166
</ScrollWrapper>
166167
</SectionWrapper>
@@ -198,6 +199,7 @@ useHead({
198199
<SectionTeaserCard
199200
:items="parsedQuickLinks"
200201
:grid-layout="false"
202+
data-test="quick-link-items"
201203
/>
202204
</div>
203205
</SectionWrapper>
@@ -225,6 +227,7 @@ useHead({
225227
button-text="Continue Reading"
226228
:button-url="parsedArchiveBlogs.blogUri"
227229
:cover-image="parsedArchiveBlogs.image"
230+
data-test="featured-article"
228231
/>
229232
</SectionWrapper>
230233
<SectionWrapper
@@ -250,6 +253,7 @@ useHead({
250253
<SectionTeaserCard
251254
:items="parsedFeaturedCollections"
252255
:grid-layout="false"
256+
data-test="featured-collection-items"
253257
/>
254258
</ScrollWrapper>
255259
</SectionWrapper>
@@ -429,7 +433,7 @@ main {
429433
margin-bottom: 40px;
430434
}
431435
432-
:deep(.rich-text.summary) {
436+
:deep(.rich-text.section-summary) {
433437
max-width: 100%;
434438
}
435439

0 commit comments

Comments
 (0)