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

Add E2E tests for examples 1-4 #2

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
mornir merged 11 commits into wearelucid:master from mornir:master
Dec 22, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Resolve conflicts
  • Loading branch information
mornir committed Dec 22, 2019
commit ee67b1e0777a3676d1cecfed9b6e652014dc3c81
3 changes: 2 additions & 1 deletion .eslintrc.js
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ module.exports = {
'error',
{
singleQuote: true,
semi: false
semi: false,
endOfLine:"auto"
}
],
}
Expand Down
4 changes: 3 additions & 1 deletion components/Example1.vue
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ export default {
<template>
<div>
<h2>1. Hello, World!</h2>
<ElButton type="primary" data-cy="btn-hello-world" @click="helloWorld()">Hello</ElButton>
<ElButton type="primary" data-cy="btn-hello-world" @click="helloWorld()"
>Hello</ElButton
>
<p>Response: {{ response }}</p>
<p v-if="error" style="color:red;">
<strong>Error {{ error.status }}</strong>
Expand Down
15 changes: 13 additions & 2 deletions components/Example2.vue
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,20 @@ export default {
>
<h2>2. Hello, {name}</h2>
<ElFormItem label="Name">
<ElInput v-model="form.name" placeholder="Your name" required data-cy="input-hello-name" />
<ElInput
v-model="form.name"
placeholder="Your name"
required
data-cy="input-hello-name"
/>
</ElFormItem>
<ElButton type="primary" data-cy="btn-hello-name" @click="helloName(form.name)">👋 Say hello</ElButton>
<ElButton
type="primary"
data-cy="btn-hello-name"
@click="helloName(form.name)"
>
👋 Say hello
</ElButton>
<p>Response: {{ response }}</p>
<p v-if="error" style="color:red;">
<strong>Error {{ error.status }}</strong>
Expand Down
22 changes: 19 additions & 3 deletions components/Example3.vue
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,26 @@ export default {
>
<h2>3. Hello, {name} (POST version)</h2>
<ElFormItem label="Name">
<ElInput v-model="form.name" placeholder="Your name" data-cy="input-hello-name-post" />
<ElInput
v-model="form.name"
placeholder="Your name"
data-cy="input-hello-name-post"
/>
</ElFormItem>
<ElButton type="primary" data-cy="btn-hello-name-post" @click="helloNamePost(form.name)">👋 Say hello</ElButton>
<ElButton type="danger" data-cy="btn-hello-name-post-error" @click="helloNamePostError(form.name)">.$get() Error</ElButton>
<ElButton
type="primary"
data-cy="btn-hello-name-post"
@click="helloNamePost(form.name)"
>
👋 Say hello
</ElButton>
<ElButton
type="danger"
data-cy="btn-hello-name-post"
@click="helloNamePostError(form.name)"
>
.$get() Error
</ElButton>
<p>Response: {{ response }}</p>
<p v-if="error" style="color:red;">
<strong>Error {{ error.status }}</strong>
Expand Down
21 changes: 17 additions & 4 deletions components/Example4.vue
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,24 @@ export default {
<h2>4. Get a random cat with your name</h2>
<p><em>API call done by your browser</em></p>
<ElFormItem label="Name">
<ElInput data-cy="input-random-cat" v-model="form.name" placeholder="Your name" required />
<ElInput
v-model="form.name"
data-cy="input-random-cat"
placeholder="Your name"
required
/>
</ElFormItem>
<ElButton type="primary" data-cy="btn-random-cat" @click="randomCat(form.name)">🐈 Meow</ElButton>
<p>Response:
<br><br><img data-cy="img-random-cat" v-show="response" :src="response" style="width:100%;height:auto;">
<ElButton type="primary" @click="randomCat(form.name)">🐈 Meow</ElButton>
<p>
Response:
<br />
<br />
<img v-show="response" :src="response" style="width:100%;height:auto;" />
</p>
<p v-if="error" style="color:red;">
<strong>Error {{ error.status }}</strong>
<br />
{{ error.data }}
</p>
</ElForm>
</template>
18 changes: 4 additions & 14 deletions package.json
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -26,20 +26,10 @@
"@nuxtjs/eslint-config": "^1.1.2",
"@nuxtjs/eslint-module": "^1.0.0",
"babel-eslint": "^10.0.1",
"cypress": "^3.4.1",
"encoding": "^0.1.12",
"eslint": "^5.0.1",
"eslint-config-prettier": "^3.1.0",
"eslint-config-standard": ">=12.0.0",
"eslint-loader": "^2.0.0",
"eslint-plugin-import": ">=2.14.0",
"eslint-plugin-jest": ">=21.24.1",
"eslint-plugin-node": ">=7.0.1",
"eslint-plugin-prettier": "2.6.2",
"eslint-plugin-promise": ">=4.0.1",
"eslint-plugin-standard": ">=4.0.0",
"eslint-plugin-vue": "^5.0.0",
"netlify-lambda": "^1.3.1",
"eslint": "^6.1.0",
"eslint-config-prettier": "^4.1.0",
"eslint-plugin-nuxt": ">=0.4.2",
"eslint-plugin-prettier": "^3.0.1",
"node-sass": "^4.11.0",
"prettier": "^1.16.4",
"sass-lint": "^1.12.1",
Expand Down
Loading
You are viewing a condensed version of this merge commit. You can view the full changes here.

AltStyle によって変換されたページ (->オリジナル) /