Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/curttimson/hugo-theme-massively.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'cypress/integration/post.test.ts')
-rw-r--r--cypress/integration/post.test.ts20
1 files changed, 20 insertions, 0 deletions
diff --git a/cypress/integration/post.test.ts b/cypress/integration/post.test.ts
new file mode 100644
index 0000000..afa27ae
--- /dev/null
+++ b/cypress/integration/post.test.ts
@@ -0,0 +1,20 @@
+const post = {
+ date: 'March 29, 2022',
+ slug: 'lorem-ipsum',
+ title: 'Lorem Ipsum',
+}
+
+describe('Post', () => {
+ before(() => {
+ cy.visit(`http://localhost:1313/post/${post.slug}`);
+ });
+
+ it('displays date', () => {
+ cy.get('.date').contains(post.date);
+ })
+
+ it('displays title', () => {
+ cy.get('h1')
+ .contains(post.title);
+ });
+});