-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
46 changed files
with
1,961 additions
and
91 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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,11 @@ | ||
import { defineConfig } from 'cypress'; | ||
|
||
export default defineConfig({ | ||
experimentalStudio: true, | ||
|
||
e2e: { | ||
setupNodeEvents(on, config) { | ||
// implement node event listeners here | ||
}, | ||
}, | ||
}); |
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,13 @@ | ||
import { mount } from 'cypress/react'; | ||
|
||
// Augment the Cypress namespace to include type definitions for | ||
// your custom command. | ||
// Alternatively, can be defined in cypress/support/component.d.ts | ||
// with a <reference path="./component" /> at the top of your spec. | ||
declare global { | ||
namespace Cypress { | ||
interface Chainable { | ||
mount: typeof mount; | ||
} | ||
} | ||
} |
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,3 @@ | ||
{ | ||
"extends": ["plugin:cypress/recommended"] | ||
} |
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,64 @@ | ||
const visitUrl = 'http://localhost:3000/'; | ||
|
||
describe('guestFeatureTest', () => { | ||
it('visitSite', () => { | ||
cy.visit(visitUrl); | ||
}); | ||
|
||
/* ==== Test Created with Cypress Studio ==== */ | ||
it('게시글 목록을 필터링/정렬 조건을 수정한다', function () { | ||
cy.visit('http://localhost:3000/'); | ||
cy.get(':nth-child(1) > .sc-gVpkOZ > .sc-fXmShK').click(); | ||
cy.get('.sc-gyMiQo > :nth-child(1)').click(); | ||
cy.get(':nth-child(2) > .sc-gVpkOZ > .sc-fXmShK').click(); | ||
cy.get('.sc-gyMiQo > :nth-child(1)').click(); | ||
//list 확인 필요 | ||
}); | ||
|
||
it('랭킹 페이지에 진입해 인기글 상세 페이지로 이동한다', function () { | ||
cy.visit('http://localhost:3000/'); | ||
cy.get('.sc-fWKGHs > .gHxHbZ > img').click(); | ||
cy.get('.cbweqh').click(); | ||
cy.get(':nth-child(1) > :nth-child(3) > a').click(); | ||
}); | ||
|
||
it('공지사항 목록페이지로 진입해 상세 공지사항 페이지로 이동한다', function () { | ||
/* ==== Generated with Cypress Studio ==== */ | ||
cy.visit('http://localhost:3000/'); | ||
cy.get('.sc-hmrlCG > .sc-iJSKBe > .sc-giQjdv > span').click(); | ||
//list 확인 필요 | ||
cy.get(':nth-child(1) > .sc-fGwJSW > .sc-hmftdN').click(); | ||
}); | ||
|
||
it('게스트에게 보이는 토스트를 확인한다', function () { | ||
cy.visit('http://localhost:3000/'); | ||
cy.get('.sc-fWKGHs > .sc-gSIKdN > .sc-iNyIUv > img').click(); | ||
cy.get('.sc-bdDrbm').should('exist').should('contain', '로그인 후 이용'); | ||
|
||
cy.get( | ||
'.sc-hmrlCG > .sc-iJSKBe > .sc-bYgGll > .sc-dILiZe > .sc-fKwBvW > .sc-dYlqv > .sc-hCcNSO > :nth-child(1) > .sc-fFCYnF > img' | ||
).click(); | ||
cy.get('.sc-bdDrbm').should('exist').should('contain', '로그인 후 이용'); | ||
}); | ||
|
||
it('스크롤버튼을 눌러 상단으로 이동한다', function () { | ||
cy.visit('http://localhost:3000/'); | ||
cy.scrollTo('bottom'); | ||
cy.scrollTo('bottom'); | ||
cy.scrollTo('bottom'); | ||
cy.get('.sc-eEFsNM').click(); | ||
cy.get('html, body').should($el => { | ||
expect($el.scrollTop()).to.equal(0); | ||
}); | ||
}); | ||
|
||
it('a 키워드를 검색한다', function () { | ||
cy.visit('http://localhost:3000/'); | ||
cy.get('.sc-jePPIV').click(); | ||
cy.get('.sc-eIYifI').clear(); | ||
cy.get('.sc-eIYifI').type('a'); | ||
cy.get('.sc-otYyL > img').click(); | ||
//list | ||
}); | ||
/* ==== Test Created with Cypress Studio ==== */ | ||
}); |
Oops, something went wrong.