-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[2단계 - 자주 가는 음식점] - 초코(강다빈) 미션 제출합니다. (#176)
* docs: 기능 요구 사항 정리 Co-Authored-By: 00kang <[email protected]> * chore: 프로젝트 초기 설정 - eslint - prettier - tsconfig(경로 별칭) - package.json(typescript-eslint 설치) Co-Authored-By: 00kang <[email protected]> * feat: 카테고리, 이름, 거리(도보 이동 시간), 설명, 참고 링크를 저장한다. Co-Authored-By: 00kang <[email protected]> * feat: 음식점 목록에 새로운 음식점을 추가 Co-Authored-By: 00kang <[email protected]> * feat: 음식점 목록을 확인 Co-Authored-By: 00kang <[email protected]> * chore: typescript 모듈 테스트를 위한 jest 설정 Co-Authored-By: 00kang <[email protected]> * test: RestaurantManager 기능 테스트 Co-Authored-By: 00kang <[email protected]> * chore: template 이미지 리소스 view로 복사 Co-Authored-By: 00kang <[email protected]> * feat: 모달 열고 닫는 기능 Co-Authored-By: 00kang <[email protected]> * feat: 식당 등록 폼 커스텀 이벤트 Co-Authored-By: 00kang <[email protected]> * feat: Form 제출 시 localStorage에 저장 Co-Authored-By: 00kang <[email protected]> * chore: 정적 파일 import Co-Authored-By: 00kang <[email protected]> * feat: Select 컴포넌트 제작 Co-Authored-By: 00kang <[email protected]> * feat: GNB를 웹 컴포넌트로 전환 Co-Authored-By: 00kang <[email protected]> * chore: Select 컴포넌트 위치 변경 Co-Authored-By: 00kang <[email protected]> * feat: RestaurantForm를 웹 컴포넌트로 전환 Co-Authored-By: 00kang <[email protected]> * feat: Modal을 웹 컴포넌트 AppModal로 전환 Co-Authored-By: 00kang <[email protected]> * chore: AppModal의 이름을 Modal로 변경 Co-Authored-By: 00kang <[email protected]> * chore: 레스토랑 필터 select 박스 배치 Co-Authored-By: 00kang <[email protected]> * feat: localStorage와 도메인 연동 Co-Authored-By: 00kang <[email protected]> * feat: localStorage와 도메인 연동 - 페이지가 로드됐을 때 - 필터를 변경할 때 Co-Authored-By: 00kang <[email protected]> * feat: 음식점 렌더링 컴포넌트 Co-Authored-By: 00kang <[email protected]> * feat: 레스토랑 목록을 렌더링하는 컴포넌트 Co-Authored-By: 00kang <[email protected]> * feat: 식당 데이터를 웹 뷰에 렌더링 Co-Authored-By: 00kang <[email protected]> * test: RestaurantManger filteredAndSortedByOptions 테스트 케이스 추가 Co-Authored-By: 00kang <[email protected]> * chore: eslint 적용에 따른 코드 수정 Co-Authored-By: 00kang <[email protected]> * refactor: WebController 함수 분리 Co-Authored-By: 00kang <[email protected]> * docs: 기능 요구사항 문서 업데이트 Co-Authored-By: 00kang <[email protected]> * fix: 폼이 제출되었을 때 input이 초기화되지 않는 버그 수정 Co-Authored-By: 00kang <[email protected]> * feat: 링크 유효성 검사 Co-Authored-By: 00kang <[email protected]> * chore: console.log 제거 Co-Authored-By: 00kang <[email protected]> * docs: 실행 결과 gif Co-Authored-By: 00kang <[email protected]> * refacotr: 오타 수정 * chore: webpack 재설치 업데이트 * refactor: filtering과 sorting 관련 수정 - 원본 배열이 아닌 복사본으로 sorting - filteredAndSortedByOptions 메서드의 반환타입 명시 * refactor: CSS 파일 수정 - 임포트 파일명 수정 - global.css 에서 분리 - 필요없는 주석 삭제 * refactor: 불필요한 async 삭제, 오타 수정 * refactor: innerHTML 대신 textContent 사용 * refactor: attributeChangedCallback 수정 * docs: step2 미션에 맞게 REQUIREMENTS.md 업데이트 * feat: 탭바, 즐겨찾기 아이콘 추가 * feat: 음식점 목록에서 즐겨찾기 등록 * feat: 전체 음식점과 즐겨찾는 음식점 탭 구현 * feat: 레스토랑 아이템 클릭시 디테일 모달 띄우 * feat: 디테일 모달 버튼 기능 구현 - 모달에 스타일도, 기능도 아무것도 적용되고 있지 않는 문제 발생! * feat: 디테일 모달 내 링크 클릭시 이동 * test(e2e) : 탭 클릭으로 화면 전환 테스트 * style: 레스토랑 디테일 모달 스타일링 * fix: 레스토랑 디테일 모달 내의 컨텐츠 로드 에러 해결 - template 내의 style css 모듈로 분리 - RestaurantItem에서 렌더링하던 데이터, RestaurntDetail로 넘겨주기 * fix: } 추가 * feat: 불필요한 코드 삭제 --------- Co-authored-by: Kim Da Eun <[email protected]>
- Loading branch information
1 parent
40da872
commit 483cf1a
Showing
22 changed files
with
652 additions
and
49 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { defineConfig } from 'cypress'; | ||
|
||
export default defineConfig({ | ||
e2e: { | ||
setupNodeEvents(on, config) { | ||
// implement node event listeners here | ||
}, | ||
baseUrl: 'http://localhost:8080/', | ||
}, | ||
}); |
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,15 @@ | ||
describe('화면 전환 확인', () => { | ||
beforeEach(() => { | ||
cy.visit('/'); // 웹 페이지로 이동 | ||
}); | ||
|
||
it('메뉴 탭 클릭으로 화면 전환 확인', () => { | ||
// '모든 음식점' 탭을 클릭하고 활성화 여부를 확인합니다. | ||
cy.contains('모든 음식점').click(); | ||
cy.get('.tab__item.active').should('contain', '모든 음식점'); | ||
|
||
// '자주 가는 음식점' 탭을 클릭하고 활성화 여부를 확인합니다. | ||
cy.contains('자주 가는 음식점').click(); | ||
cy.get('.tab__item.active').should('contain', '자주 가는 음식점'); | ||
}); | ||
}); |
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,5 @@ | ||
{ | ||
"name": "Using fixtures to represent data", | ||
"email": "[email protected]", | ||
"body": "Fixtures are a great way to mock data for responses to routes" | ||
} |
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,37 @@ | ||
/// <reference types="cypress" /> | ||
// *********************************************** | ||
// This example commands.ts shows you how to | ||
// create various custom commands and overwrite | ||
// existing commands. | ||
// | ||
// For more comprehensive examples of custom | ||
// commands please read more here: | ||
// https://on.cypress.io/custom-commands | ||
// *********************************************** | ||
// | ||
// | ||
// -- This is a parent command -- | ||
// Cypress.Commands.add('login', (email, password) => { ... }) | ||
// | ||
// | ||
// -- This is a child command -- | ||
// Cypress.Commands.add('drag', { prevSubject: 'element'}, (subject, options) => { ... }) | ||
// | ||
// | ||
// -- This is a dual command -- | ||
// Cypress.Commands.add('dismiss', { prevSubject: 'optional'}, (subject, options) => { ... }) | ||
// | ||
// | ||
// -- This will overwrite an existing command -- | ||
// Cypress.Commands.overwrite('visit', (originalFn, url, options) => { ... }) | ||
// | ||
// declare global { | ||
// namespace Cypress { | ||
// interface Chainable { | ||
// login(email: string, password: string): Chainable<void> | ||
// drag(subject: string, options?: Partial<TypeOptions>): Chainable<Element> | ||
// dismiss(subject: string, options?: Partial<TypeOptions>): Chainable<Element> | ||
// visit(originalFn: CommandOriginalFn, url: string, options: Partial<VisitOptions>): Chainable<Element> | ||
// } | ||
// } | ||
// } |
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,20 @@ | ||
// *********************************************************** | ||
// This example support/e2e.ts is processed and | ||
// loaded automatically before your test files. | ||
// | ||
// This is a great place to put global configuration and | ||
// behavior that modifies Cypress. | ||
// | ||
// You can change the location of this file or turn off | ||
// automatically serving support files with the | ||
// 'supportFile' configuration option. | ||
// | ||
// You can read more here: | ||
// https://on.cypress.io/configuration | ||
// *********************************************************** | ||
|
||
// Import commands.js using ES2015 syntax: | ||
import './commands' | ||
|
||
// Alternatively you can use CommonJS syntax: | ||
// require('./commands') |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Oops, something went wrong.