Skip to content

Commit d58171b

Browse files
authored
Merge pull request #1152 from appirio-tech/feature/qaas-and-chatbot
Feature/qaas and chatbot
2 parents e147562 + c1abf85 commit d58171b

File tree

1 file changed

+60
-64
lines changed

1 file changed

+60
-64
lines changed

src/config/projectQuestions/crowd_testing.v1.0.js

Lines changed: 60 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
import _ from 'lodash'
2+
import React from 'react'
23
import { Icons } from 'appirio-tech-react-components'
3-
import NumberText from '../../components/NumberText/NumberText'
4+
import SVGIconImage from '../../components/SVGIconImage'
5+
// import NumberText from '../../components/NumberText/NumberText'
46
import { findProduct} from '../projectWizard'
57

8+
69
const isFileRequired = (project, subSections) => {
710
const subSection = _.find(subSections, (s) => s.type === 'questions')
811
const fields = _.filter(subSection.questions, q => q.type.indexOf('see-attached') > -1)
@@ -54,56 +57,46 @@ const sections = [
5457
fieldName: 'details.appDefinition.testType',
5558
type: 'tiled-radio-group',
5659
options: [
57-
{value: 'unstructured', title: 'Unstructured', icon: Icons.IconTechOutlineMobile, iconOptions: { fill: '#00000'}, desc: ''},
58-
{value: 'structured', title: 'Structured', icon: Icons.IconTechOutlineTablet, iconOptions: { fill: '#00000'}, desc: ''},
59-
{value: 'dontKnow', title: 'Do not know', icon: 'icon-dont-know', iconOptions: { fill: '#00000'}, desc: ''}
60+
{value: 'unstructured', title: 'Unstructured', icon: SVGIconImage, iconOptions: { filePath: 'icon-test-unstructured', fill: '#00000'}, desc: ''},
61+
{value: 'structured', title: 'Structured', icon: SVGIconImage, iconOptions: { filePath: 'icon-test-structured', fill: '#00000'}, desc: ''},
62+
{value: 'dontKnow', title: 'Do not know', icon: SVGIconImage, iconOptions: { filePath: 'icon-dont-know', fill: '#00000'}, desc: ''}
6063
]
6164
},
6265
{
6366
icon: 'question',
6467
required: true,
65-
validationError: 'Please let us know the expected hours',
66-
title: 'Approximately how many hours of crowd testing are you \
67-
looking for your app?',
68-
description: 'If you know roughly the amount of time you want spent \
69-
testing the application please list it here. If you do \
70-
not know how many hours you require your copilot can \
71-
assist you.',
68+
validationError: 'Please let us know if you have test cases.',
69+
title: 'Do you have test cases written?',
70+
description: 'Do you have test cases you would like executed? These are essential when running structured testing and optional for unstructured testing. If you are planning a structured test cycle and do not have test cases do not worry, we can help!',
7271
fieldName: 'details.appDefinition.expectedHours',
73-
type: 'tiled-radio-group',
72+
type: 'radio-group',
7473
options: [
75-
{value: 'upto100', title: 'hours', icon: NumberText, iconOptions: { number: '100' }, desc: 'or fewer'},
76-
{value: 'upTo250', title: 'hours', icon: NumberText, iconOptions: { number: '250' }, desc: 'or fewer'},
77-
{value: 'upTo500', title: 'hours', icon: NumberText, iconOptions: { number: '500' }, desc: 'or fewer'},
78-
{value: 'dontKnow', title: 'Do not know', icon: 'icon-dont-know', iconOptions: { fill: '#00000'}, desc: 'or not applicable'}
74+
{value: 'true', label: 'Yes I have test cases.'},
75+
{value: 'false', label: 'No I do not have test cases.'}
7976
]
8077
},
8178
{
8279
icon: 'question',
83-
title: 'In which geographies would you like to test?',
84-
description: '',
85-
type: 'checkbox-group',
86-
options: [
87-
{value: 'africa', label: 'Africa'},
88-
{value: 'asia', label: 'Asia'},
89-
{value: 'australia', label: 'Australia'},
90-
{value: 'europe', label: 'Europe'},
91-
{value: 'northAmerica', label: 'North America'},
92-
{value: 'southAmerica', label: 'South America'}
93-
],
94-
fieldName: 'details.appDefinition.geographies'
80+
title: 'Please tell us about your users.',
81+
description: 'Please share information about your end users. Where are they from? What is their goal? This information can help you find the best testers for your application.',
82+
type: 'textbox',
83+
fieldName: 'details.appDefinition.userInfo'
9584
},
9685
{
9786
icon: 'question',
98-
title: 'Approximately how many platform/device - browser configurations to be tested?',
99-
description: '',
100-
fieldName: 'details.appDefinition.browserConfigurations',
87+
title: 'Which is your primary device target?',
88+
description: 'Select only the device that you need to develop for. \
89+
In most cases limiting the scope of your project would result \
90+
in better final result. Topcoder recommends to always start \
91+
with the mobile phone view and expand to other devices as your \
92+
app matures.',
93+
fieldName: 'details.appDefinition.primaryTarget',
10194
type: 'tiled-radio-group',
10295
options: [
103-
{value: 'upto5', title: 'configurations', icon: NumberText, iconOptions: { number: '5' }, desc: 'or fewer'},
104-
{value: 'upTo10', title: 'configurations', icon: NumberText, iconOptions: { number: '10' }, desc: 'or fewer'},
105-
{value: 'upTo20', title: 'configurations', icon: NumberText, iconOptions: { number: '20' }, desc: 'or fewer'},
106-
{value: 'dontKnow', title: 'Do not know', icon: Icons.IconTechOutlineWatchApple, iconOptions: { fill: '#00000'}, desc: 'We will find the best fit for you.'}
96+
{value: 'phone', title: 'Phone', icon: Icons.IconTechOutlineMobile, iconOptions: { fill: '#00000'}, desc: 'iOS, Android, Hybrid'},
97+
{value: 'tablet', title: 'Tablet', icon: Icons.IconTechOutlineTablet, iconOptions: { fill: '#00000'}, desc: 'iOS, Android, Hybrid'},
98+
{value: 'desktop', title: 'Desktop', icon: Icons.IconTechOutlineDesktop, iconOptions: { fill: '#00000'}, desc: 'all OS'},
99+
{value: 'wearable', title: 'Wearable', icon: Icons.IconTechOutlineWatchApple, iconOptions: { fill: '#00000'}, desc: 'Watch OS, Android Wear'}
107100
]
108101
}
109102
]
@@ -282,46 +275,49 @@ export const basicSections = [
282275
fieldName: 'details.appDefinition.testType',
283276
type: 'tiled-radio-group',
284277
options: [
285-
{value: 'unstructured', title: 'Unstructured', icon: Icons.IconTechOutlineMobile, iconOptions: { fill: '#00000'}, desc: ''},
286-
{value: 'structured', title: 'Structured', icon: Icons.IconTechOutlineTablet, iconOptions: { fill: '#00000'}, desc: ''},
287-
{value: 'dontKnow', title: 'Do not know', icon: 'icon-dont-know', iconOptions: { fill: '#00000'}, desc: ''}
278+
{value: 'unstructured', title: 'Unstructured', icon: SVGIconImage, iconOptions: { filePath: 'icon-test-unstructured', fill: '#00000'}, desc: ''},
279+
{value: 'structured', title: 'Structured', icon: SVGIconImage, iconOptions: { filePath: 'icon-test-structured', fill: '#00000'}, desc: ''},
280+
{value: 'dontKnow', title: 'Do not know', icon: SVGIconImage, iconOptions: { filePath: 'icon-dont-know', fill: '#00000'}, desc: ''}
288281
]
289282
},
290283
{
291284
icon: 'question',
292285
required: true,
293-
validationError: 'Please let us know the expected hours',
294-
title: 'Approximately how many hours of crowd testing are you \
295-
looking for your app?',
296-
description: 'If you know roughly the amount of time you want spent \
297-
testing the application please list it here. If you do \
298-
not know how many hours you require your copilot can \
299-
assist you.',
286+
validationError: 'Please let us know if you have test cases.',
287+
title: 'Do you have test cases written?',
288+
description: 'Do you have test cases you would like executed? These are essential when running structured testing and optional for unstructured testing. If you are planning a structured test cycle and do not have test cases do not worry, we can help!',
300289
fieldName: 'details.appDefinition.expectedHours',
301-
type: 'tiled-radio-group',
290+
type: 'radio-group',
302291
options: [
303-
{value: 'upto100', title: 'hours', icon: NumberText, iconOptions: { number: '100' }, desc: 'or fewer'},
304-
{value: 'upTo250', title: 'hours', icon: NumberText, iconOptions: { number: '250' }, desc: 'or fewer'},
305-
{value: 'upTo500', title: 'hours', icon: NumberText, iconOptions: { number: '500' }, desc: 'or fewer'},
306-
{value: 'dontKnow', title: 'Do not know', icon: 'icon-dont-know', iconOptions: { fill: '#00000'}, desc: 'or not applicable'}
292+
{value: 'true', label: 'Yes I have test cases.'},
293+
{value: 'false', label: 'No I do not have test cases.'}
307294
]
308295
},
309296
{
310297
icon: 'question',
311-
title: 'In which geographies would you like to test?',
312-
description: '',
313-
type: 'checkbox-group',
314-
options: [
315-
{value: 'africa', label: 'Africa'},
316-
{value: 'asia', label: 'Asia'},
317-
{value: 'australia', label: 'Australia'},
318-
{value: 'europe', label: 'Europe'},
319-
{value: 'northAmerica', label: 'North America'},
320-
{value: 'southAmerica', label: 'South America'}
321-
],
322-
fieldName: 'details.appDefinition.geographies'
298+
title: 'Please tell us about your users.',
299+
description: 'Please share information about your end users. Where are they from? What is their goal? This information can help you find the best testers for your application.',
300+
type: 'textbox',
301+
fieldName: 'details.appDefinition.userInfo'
323302
},
324303
{
304+
icon: 'question',
305+
title: 'Which is your primary device target?',
306+
description: 'Select only the device that you need to develop for. \
307+
In most cases limiting the scope of your project would result \
308+
in better final result. Topcoder recommends to always start \
309+
with the mobile phone view and expand to other devices as your \
310+
app matures.',
311+
fieldName: 'details.appDefinition.primaryTarget',
312+
type: 'tiled-radio-group',
313+
options: [
314+
{value: 'phone', title: 'Phone', icon: Icons.IconTechOutlineMobile, iconOptions: { fill: '#00000'}, desc: 'iOS, Android, Hybrid'},
315+
{value: 'tablet', title: 'Tablet', icon: Icons.IconTechOutlineTablet, iconOptions: { fill: '#00000'}, desc: 'iOS, Android, Hybrid'},
316+
{value: 'desktop', title: 'Desktop', icon: Icons.IconTechOutlineDesktop, iconOptions: { fill: '#00000'}, desc: 'all OS'},
317+
{value: 'wearable', title: 'Wearable', icon: Icons.IconTechOutlineWatchApple, iconOptions: { fill: '#00000'}, desc: 'Watch OS, Android Wear'}
318+
]
319+
}
320+
/*{
325321
icon: 'question',
326322
title: 'Approximately how many platform/device - browser configurations to be tested?',
327323
description: '',
@@ -331,10 +327,10 @@ export const basicSections = [
331327
{value: 'upto5', title: 'configurations', icon: NumberText, iconOptions: { number: '5' }, desc: 'or fewer'},
332328
{value: 'upTo10', title: 'configurations', icon: NumberText, iconOptions: { number: '10' }, desc: 'or fewer'},
333329
{value: 'upTo20', title: 'configurations', icon: NumberText, iconOptions: { number: '20' }, desc: 'or fewer'},
334-
{value: 'dontKnow', title: 'Do not know', icon: Icons.IconTechOutlineWatchApple, iconOptions: { fill: '#00000'}, desc: 'We will find the best fit for you.'}
330+
{value: 'dontKnow', title: 'Do not know', icon: SVGIconImage, iconOptions: { filePath: 'icon-dont-know', fill: '#00000'}, desc: 'We will find the best fit for you.'}
335331
]
336332
}
337-
/*{
333+
{
338334
id: 'projectInfo',
339335
required: true,
340336
validationError: 'Please provide any user accounts \

0 commit comments

Comments
 (0)