Skip to content

Commit

Permalink
test(intg): use proper selectors
Browse files Browse the repository at this point in the history
  • Loading branch information
lemredd committed Dec 20, 2022
1 parent 177938a commit 0ce982e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/CalculatorContainer.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import Component from "./CalculatorContainer.vue"
describe("Component: CalculatorContainer", () => {
it("can change screen value once a button is pressed", async() => {
const wrapper = mount(Component)
const calculatorBtn = wrapper.find(".calculator-button")
const digitalBtn = wrapper.find(".digital-button")
const calculatorScreen = wrapper.find(".calculator-screen").element as HTMLInputElement

await calculatorBtn.trigger("click")
await digitalBtn.trigger("click")
expect(calculatorScreen.value).not.toEqual("0")
})
})

0 comments on commit 0ce982e

Please sign in to comment.