반응형
Cypress에서 Vuex getter에 액세스하는 올바른 방법은 무엇입니까?
제겐 '게터'라는 사람이 있어요viewItemsVuex v v v v v v v v v v v v v v사이프러스 ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★:
Cypress.Commands.add("getStore", () => {
return cy.window().its("app.$store");
});
cy.getStore().its("getters.viewItems.length").should("equal", 13);
동작하지만 Cypress를 실행하면 콘솔에 다음과 같은 오류가 나타납니다.
[Vue warn]: Property or method "nodeType" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties
getter에 접근하는 더 좋은 방법이 있나요? 아니면 다른 방법이 있나요?
언급URL : https://stackoverflow.com/questions/64876393/what-is-the-correct-way-to-access-vuex-getters-from-cypress
반응형
'programing' 카테고리의 다른 글
| 봄에는 자동 배선이 어떻게 작동합니까? (0) | 2022.07.30 |
|---|---|
| C에서 2개의 스트링을 연결하려면 어떻게 해야 하나요? (0) | 2022.07.30 |
| v-for 값을 v-if에 바인딩하는 방법 (0) | 2022.07.30 |
| 잭슨을 사용하여 Java 객체를 JSON으로 변환 (0) | 2022.07.30 |
| Vue.js에서 어레이를 필터링하고 V-for를 루프하는 방법 (0) | 2022.07.30 |