Skip to content

Commit 7a86320

Browse files
committed
bug: cypress test updates/bugs
1 parent 6e1e10f commit 7a86320

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

cypress/e2e/workflow/projects.cy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ describe('Projects', () => {
1919
});
2020
});
2121

22-
it.skip('should show a list of completed projects', () => {
22+
it('should show a list of completed projects', () => {
2323
const completedProjects = [];
2424

2525
cy.getDataTest('completed-projects').should('be.visible').within(() => {

src/App.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import TopNav from './components/TopNav.vue';
44

55
<template>
66
<div id="app" class="min-h-screen">
7-
<TopNav />
7+
<TopNav data-test="nav-top-menubar" />
88
<main>
99
<RouterView />
1010
</main>

src/views/Projects.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ const openLiveDemo = (demoUrl) => {
188188
<p class="section-subtitle">Finished projects and accomplishments</p>
189189
</div>
190190

191-
<div class="projects-grid">
191+
<div class="projects-grid" data-test="completed-projects">
192192
<PrimeCard
193193
v-for="project in completedProjects"
194194
:key="project.title"
@@ -270,13 +270,15 @@ const openLiveDemo = (demoUrl) => {
270270
label="View Code"
271271
icon="pi pi-github"
272272
variant="gradient"
273+
data-test="project-code-button"
273274
@click="openGithubRepo(project.github)"
274275
/>
275276
<CustomButton
276277
v-if="project.demo"
277278
label="Live Demo"
278279
icon="pi pi-external-link"
279280
variant="gradient"
281+
data-test="project-demo-button"
280282
@click="openLiveDemo(project.demo)"
281283
/>
282284
</div>

0 commit comments

Comments
 (0)