Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix: enable e2e tests for --bare#674

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
haoqunjiang merged 1 commit intovuejs:mainfromcexbrayat:fix/e2e-bare
Jan 30, 2025
Merged
Show file tree
Hide file tree
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions.github/workflows/ci.yml
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -167,8 +167,7 @@ jobs:

- name: Run e2e test script
working-directory: ./playground
# bare templates can't pass e2e tests because their page structures don't match the example tests
run: pnpm --filter '*${{ matrix.e2e-framework }}*' --filter '!*bare*' --workspace-concurrency 1 test:e2e
run: pnpm --filter '*${{ matrix.e2e-framework }}*' --workspace-concurrency 1 test:e2e

# FIXME: Component testing is failing in CI after running too many tests.
# The workaround in https://github.com/cypress-io/cypress/issues/22208 is not working.
Expand Down
2 changes: 1 addition & 1 deletiontemplate/bare/base/src/App.vue
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
<script setup></script>

<template>
<h1>Hello World</h1>
<h1>You did it!</h1>
</template>

<style scoped></style>
2 changes: 1 addition & 1 deletiontemplate/bare/cypress-ct/src/__tests__/App.cy.js
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -3,6 +3,6 @@ import App from '../App.vue'
describe('App', () => {
it('mounts and renders properly', () => {
cy.mount(App)
cy.get('h1').should('contain', 'Hello World')
cy.get('h1').should('contain', 'You did it!')
})
})
2 changes: 1 addition & 1 deletiontemplate/bare/nightwatch-ct/src/__tests__/App.spec.js
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -7,7 +7,7 @@ describe('App', function () {
const appComponent = await browser.mountComponent('/src/App.vue');

browser.expect.element(appComponent).to.be.present;
browser.expect.element('h1').text.to.contain('Hello World');
browser.expect.element('h1').text.to.contain('You did it!');
})

after((browser) => browser.end())
Expand Down
2 changes: 1 addition & 1 deletiontemplate/bare/typescript/src/App.vue
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
<script setup lang="ts"></script>

<template>
<h1>Hello World</h1>
<h1>You did it!</h1>
</template>

<style scoped></style>
2 changes: 1 addition & 1 deletiontemplate/bare/vitest/src/__tests__/App.spec.js
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -6,6 +6,6 @@ import App from '../App.vue'
describe('App', () => {
it('mounts renders properly', () => {
const wrapper = mount(App)
expect(wrapper.text()).toContain('Hello World')
expect(wrapper.text()).toContain('You did it!')
})
})
2 changes: 1 addition & 1 deletiontemplate/config/nightwatch/tests/e2e/example.js
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -4,7 +4,7 @@ describe('My First Test', function () {
})

it('visits the app root url', function () {
browser.assert.textContains('.green', 'You did it!')
browser.assert.textContains('h1', 'You did it!')
})

after((browser) => browser.end())
Expand Down
2 changes: 1 addition & 1 deletiontemplate/config/playwright/e2e/vue.spec.js
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -4,5 +4,5 @@ import { test, expect } from '@playwright/test';
// https://playwright.dev/docs/intro
test('visits the app root url', async ({ page }) => {
await page.goto('/');
await expect(page.locator('div.greetings >h1')).toHaveText('You did it!');
await expect(page.locator('h1')).toHaveText('You did it!');
})
2 changes: 1 addition & 1 deletiontemplate/config/playwright/e2e/vue.spec.ts
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -4,5 +4,5 @@ import { test, expect } from '@playwright/test';
// https://playwright.dev/docs/intro
test('visits the app root url', async ({ page }) => {
await page.goto('/');
await expect(page.locator('div.greetings >h1')).toHaveText('You did it!');
await expect(page.locator('h1')).toHaveText('You did it!');
})

[8]ページ先頭

©2009-2025 Movatter.jp