import { expect, $ } from '@wdio/globals'
import { render } from '@testing-library/vue'
import * as matchers from '@testing-library/jest-dom/matchers'
expect.extend(matchers as any)
import Component from './HelloWorld.vue'
describe('Vue Component Tests', () => {
it('should do something cool', async () => {
const { getByText } = render(Component)
getByText('count is 0')
const button = await $(getByText('count is 0'))
await button.click()
await button.click()
getByText('count is 2')
await expect(button).toHaveText('count is 2')
})
})