-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add 2 spec files and change one file name (#576)
* feat: add 2 spec files and change one file name * fix: changes url and titles to specs * fix: added new url * fix: specs Co-authored-by: Parinita Mulak <pghorpade@library.ucla.edu>
- Loading branch information
1 parent
f00343c
commit fea6e2f
Showing
3 changed files
with
38 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
describe("Resource page", () => { | ||
it("Visit a Resource Page", () => { | ||
cy.visit("help/services-resources/animals") | ||
|
||
// UCLA Library brand | ||
cy.get(".logo-ucla").should("be.visible") | ||
cy.get("h1.title").should( | ||
"contain", | ||
`Animals are Excellent and Flowers are Fluffy` | ||
) | ||
}) | ||
|
||
context("When there isn't an entry in craft", () => { | ||
it("Raises a 404 error", () => { | ||
// cy.visit("/about/blogs/no_entry", {failOnStatusCode: false}) | ||
cy.request({url: "/help/services-resources/no_entry", failOnStatusCode: false}).its("status").should("equal", 404) | ||
}) | ||
}) | ||
}) |
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,19 @@ | ||
describe("Service page", () => { | ||
it("Visit a Service page", () => { | ||
cy.visit("help/services-resources/service-with-all-flexible-page-block-types") | ||
|
||
// UCLA Library brand | ||
cy.get(".logo-ucla").should("be.visible") | ||
cy.get("h1.title").should( | ||
"contain", | ||
`Service with all flexible page block types` | ||
) | ||
}) | ||
|
||
context("When there isn't an entry in craft", () => { | ||
it("Raises a 404 error", () => { | ||
// cy.visit("/about/blogs/no_entry", {failOnStatusCode: false}) | ||
cy.request({url: "/help/services-resources/no_entry", failOnStatusCode: false}).its("status").should("equal", 404) | ||
}) | ||
}) | ||
}) |
File renamed without changes.
fea6e2f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉 Published on https://uclalibrary-test.library.ucla.edu as production
🚀 Deployed on https://63914b3d5b92f919e4348751--uclalibrary-test.netlify.app
fea6e2f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉 Published on https://uclalibrary-stage.library.ucla.edu as production
🚀 Deployed on https://639222b1dcedca177a8f8cbc--uclalibrary-stage.netlify.app
fea6e2f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉 Published on https://uclalibrary.library.ucla.edu as production
🚀 Deployed on https://639222c9ffc8a01c0b6a592d--uclalibrary.netlify.app
fea6e2f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉 Published on https://uclalibrary-stage.library.ucla.edu as production
🚀 Deployed on https://63924f67cbb99707a7308513--uclalibrary-stage.netlify.app