From 390923378b28cc2286da80652127ab318934d515 Mon Sep 17 00:00:00 2001 From: "robinwilliam.hundt" <robinwilliam.hundt@stud.uni-goettingen.de> Date: Sat, 4 Aug 2018 11:05:36 +0200 Subject: [PATCH] wrote first e2e test! --- frontend/tests/e2e/specs/test.js | 3 +-- frontend/tests/unit/HelloWorld.spec.ts | 13 ------------- 2 files changed, 1 insertion(+), 15 deletions(-) delete mode 100644 frontend/tests/unit/HelloWorld.spec.ts diff --git a/frontend/tests/e2e/specs/test.js b/frontend/tests/e2e/specs/test.js index 1da55569..6cfaba24 100644 --- a/frontend/tests/e2e/specs/test.js +++ b/frontend/tests/e2e/specs/test.js @@ -3,11 +3,10 @@ module.exports = { 'default e2e tests': browser => { + console.log(`URL: ${process.env.VUE_DEV_SERVER_URL}`) browser .url(process.env.VUE_DEV_SERVER_URL) .waitForElementVisible('#app', 5000) - .assert.elementPresent('.hello') - .assert.containsText('h1', 'Welcome to Your Vue.js + TypeScript App') .assert.elementCount('img', 1) .end() } diff --git a/frontend/tests/unit/HelloWorld.spec.ts b/frontend/tests/unit/HelloWorld.spec.ts deleted file mode 100644 index c585ea33..00000000 --- a/frontend/tests/unit/HelloWorld.spec.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { expect } from 'chai' -import { shallowMount } from '@vue/test-utils' -import HelloWorld from '@/components/HelloWorld.vue' - -describe('HelloWorld.vue', () => { - it('renders props.msg when passed', () => { - const msg = 'new message' - const wrapper = shallowMount(HelloWorld, { - propsData: { msg } - }) - expect(wrapper.text()).to.include(msg) - }) -}) -- GitLab