Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add banner for survey to all pages #754

Merged
merged 5 commits into from
Nov 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions app.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<!DOCTYPE html>
<html {{ HTML_ATTRS }}>

<head {{ HEAD_ATTRS }}>
{{ HEAD }}
<style>
#form_button_665bf322beb494eee75bff3a485bd4b0 {
position: sticky;
top: 0;
z-index: 210;
}

#lwz-button-665bf322beb494eee75bff3a485bd4b0 {
padding: 1rem;
background-color: gold;
border: 0;
font-weight: bold;
font-size: 16px;
width: 100%;
right: 0;
left: 0;
top: 0;
transform: initial;
transform-origin: initial;
border-radius: 0;
position: static;
}

@media (min-width: 768px) {
#lwz-button-665bf322beb494eee75bff3a485bd4b0:after {
content: "Answer 5 quick questions.";
font-weight: normal;
margin-left: 1rem;
}
}
</style>
</head>

<body {{ BODY_ATTRS }}>
<div id="form_button_665bf322beb494eee75bff3a485bd4b0"></div>
{{ APP }}
<script type="text/javascript"
src="https://ucla.libwizard.com/embed_button.php?id=665bf322beb494eee75bff3a485bd4b0&noheader=0&type=button&open-button-text=Improve your Library website experience!&open-button-color=%23f7941d&text-color=%23000000"
crossorigin="anonymous"></script>
</body>

</html>
2 changes: 1 addition & 1 deletion cypress/e2e/collectiondetailpage.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ describe("Collection Detail page", () => {
"contain",
"TEST - Title of Collection - Halloween Costumes"
)
cy.get(".page-anchor").scrollIntoView().should('be.visible')
cy.get(".page-anchor-content > button").scrollIntoView().click({ force:true })
cy.percySnapshot({ widths: [768, 992, 1200] })
})

Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/collectionlistpage.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ describe("Collection Listing page", () => {

// UCLA Library brand
cy.get(".logo-ucla").should("be.visible")
cy.get(".page-anchor").scrollIntoView().should('be.visible')
cy.get(".page-anchor").scrollIntoView().click({ force:true })
cy.percySnapshot({ widths: [768, 992, 1200] })
})
})
2 changes: 1 addition & 1 deletion cypress/e2e/helptopicpage.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ describe("Help Topic page", () => {
"contain",
"Printing Practices - Simple Card 3 Up - Rich Text - Pull Quote"
)
cy.get(".page-anchor").scrollIntoView().should('be.visible')
cy.get(".page-anchor").scrollIntoView().click({ force:true })
cy.percySnapshot({ widths: [768, 992, 1200] })
})

Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/locationdetailpage.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ describe("Location Detail page", () => {
"contain",
"Louise M. Darling Biomedical Library"
)
cy.get(".page-anchor").scrollIntoView().should('be.visible')
cy.get(".page-anchor").scrollIntoView().click({ force:true })
cy.percySnapshot({ widths: [768, 992, 1200] })
})

Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/policiesdetailpage.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ describe("Policy Detail page", () => {
it("Visits a Policy Detail Page", () => {
cy.visit("about/policies/shhh")
cy.get(".logo-ucla").should("be.visible")
cy.get(".page-anchor").scrollIntoView().should('be.visible')
cy.get(".page-anchor").scrollIntoView().click({ force:true })
cy.percySnapshot({ widths: [768, 992, 1200] })
})

Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/policieslistpage.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ describe("Policy List page", () => {
"contain",
"Policies"
)
cy.get(".page-anchor").scrollIntoView().should('be.visible')
cy.get(".page-anchor").scrollIntoView().click({ force:true })
cy.percySnapshot({ widths: [768, 992, 1200] })
})
})
2 changes: 1 addition & 1 deletion cypress/e2e/programdetailpage.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ describe("Program Detail page", () => {
"contain",
"Digital Library Program"
)
cy.get(".page-anchor").scrollIntoView().should('be.visible')
cy.get(".page-anchor").scrollIntoView().click({ force:true })
cy.percySnapshot({ widths: [768, 992, 1200] })
})

Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/service.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ describe("Service page", () => {
"contain",
`Service with all flexible page block types`
)
cy.get(".page-anchor").scrollIntoView().should('be.visible')
cy.get(".page-anchor").scrollIntoView().click({ force:true })
cy.percySnapshot({ widths: [768, 992, 1200] })
})

Expand Down
Loading