-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
939dc27
commit e6929a5
Showing
63 changed files
with
1,371 additions
and
340 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Ten Item Personality Inventory | ||
|
||
## Survey Purpose | ||
|
||
This particular survey aims to use the Ten-Item Personality Inventory (TIPI) to quantify the particpant's Big-Five personality dimensions. | ||
|
||
## Theoretical construct | ||
|
||
The Big 5 personality inventory includes | ||
|
||
- Extroversion | ||
- Conscientiousness | ||
- Agreeableness | ||
- Openness to experience | ||
- Emotional Stability / Neuroticism | ||
|
||
Measuring these traits can be expensive, as the traditional big 5 tests have many questions. This scale takes a rough measure of these attributes, and was originally developed in: | ||
|
||
> Gosling, Samuel D., Peter J. Rentfrow, and William B. Swann Jr. "A very brief measure of the Big-Five personality domains." Journal of Research in personality 37.6 (2003): 504-528. | ||
> When time is limited, researchers may be faced with the choice of using an extremely brief measure of the Big-Five personality dimensions or using no measure at all. To meet the need for a very brief measure, 5 and 10-item inventories were developed and evaluated. Although somewhat inferior to standard multi-item instruments, the instruments reached adequate levels in terms of: (a) convergence with widely used Big-Five measures in self, observer, and peer reports, (b) test–retest reliability, (c) patterns of predicted external correlates, and (d) convergence between self and observer ratings. On the basis of these tests, a 10-item measure of the Big-Five dimensions is offered for situations where very short measures are needed, personality is not the primary topic of interest, or researchers can tolerate the somewhat diminished psychometric properties associated with very brief measures. | ||
# Adaptations | ||
|
||
The original survey asked people to fill in a number in a blank. Here we provide a range of numerical values. | ||
|
||
### Screenshot | ||
|
||
![Screenshot](screenshot.png) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
import React from "react"; | ||
import { TIPI } from "../../src/index"; | ||
|
||
const dummy = { | ||
set(response) {}, | ||
}; | ||
|
||
describe("SuperSpecialSurvey", () => { | ||
it("completes", () => { | ||
cy.spy(dummy, "set").as("callback"); | ||
cy.mount(<TIPI onComplete={dummy.set} />); | ||
|
||
// extroversion | ||
cy.get('[data-name="extroversion"] input[value="1"]').click({ | ||
force: true, | ||
}); | ||
|
||
cy.get('[data-name="quietness"] input[value="6"]').click({ | ||
force: true, | ||
}); | ||
|
||
// Agreeableness | ||
cy.get('[data-name="criticalness"] input[value="2"]').click({ | ||
force: true, | ||
}); | ||
|
||
cy.get('[data-name="sympathy"] input[value="3"]').click({ | ||
force: true, | ||
}); | ||
|
||
// Conscientiousness | ||
cy.get('[data-name="dependability"] input[value="5"]').click({ | ||
force: true, | ||
}); | ||
|
||
cy.get('[data-name="carelessness"] input[value="2"]').click({ | ||
force: true, | ||
}); | ||
|
||
// Emotional Stability | ||
cy.get('[data-name="anxiety"] input[value="1"]').click({ | ||
force: true, | ||
}); | ||
|
||
cy.get('[data-name="calmness"] input[value="7"]').click({ | ||
force: true, | ||
}); | ||
|
||
// Openness | ||
cy.get('[data-name="openness"] input[value="4"]').click({ | ||
force: true, | ||
}); | ||
|
||
cy.get("form") // submit surveyJS form | ||
.then(($form) => { | ||
cy.wrap($form.find('input[type="button"][value="Complete"]')).click(); | ||
}); | ||
|
||
// check mandatory is enforced | ||
cy.contains("Response required"); | ||
|
||
cy.get('[data-name="conventionality"] input[value="4"]').click({ | ||
force: true, | ||
}); | ||
|
||
cy.screenshot("TIPI/screenshot", { overwrite: true }); | ||
|
||
cy.get("form") // submit surveyJS form | ||
.then(($form) => { | ||
cy.wrap($form.find('input[type="button"][value="Complete"]')).click(); | ||
}); | ||
|
||
cy.get(".sv-body").should("not.exist"); | ||
|
||
cy.get("@callback").should("have.been.called"); | ||
cy.get("@callback").then((spy) => { | ||
const spyCall = spy.getCall(-1).args[0]; | ||
console.log(spyCall); | ||
expect(spyCall["result"]["normExtroversion"]).to.eq( | ||
(0.083333).toFixed(3) | ||
); | ||
expect(spyCall["result"]["normAgreeableness"]).to.eq( | ||
(0.58333).toFixed(3) | ||
); | ||
expect(spyCall["result"]["normConscientiousness"]).to.eq( | ||
(0.75).toFixed(3) | ||
); | ||
expect(spyCall["result"]["normEmotionalStability"]).to.eq( | ||
(1.0).toFixed(3) | ||
); | ||
expect(spyCall["result"]["normOpennessToExperience"]).to.eq( | ||
(0.5).toFixed(3) | ||
); | ||
}); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,136 @@ | ||
{ | ||
"logoPosition": "right", | ||
"focusFirstQuestionAutomatic": false, | ||
"pages": [ | ||
{ | ||
"name": "page1", | ||
"elements": [ | ||
{ | ||
"type": "html", | ||
"name": "Prompt", | ||
"hideNumber": true, | ||
"html": "<h1> Here are a number of personality traits that may or may not apply to you. Please indicate the extent to which you agree or disagree with that statement. You should rate the extent to which the pair of traits applies to you, even if one characteristic applies more strongly than the other. </h1><h1>I see myself as ...</h1>" | ||
}, | ||
{ | ||
"type": "html", | ||
"name": "Prompt", | ||
"hideNumber": true, | ||
"html": "<p> Scale key: (1) Strongly Disagree, (2) Disagree, (3) Slightly Disagree, (4) Neutral, (5) Slightly Agree, (6) Agree, (7) Strongly Agree</p>" | ||
}, | ||
{ | ||
"type": "panel", | ||
"name": "randomizationPanel", | ||
"elements": [ | ||
{ | ||
"type": "rating", | ||
"name": "extroversion", | ||
"title": "... extroverted, enthusiastic", | ||
"rateMax": 7, | ||
"minRateDescription": "Strongly disagree", | ||
"maxRateDescription": "Strongly agree", | ||
"displayMode": "buttons", | ||
"isRequired": true | ||
}, | ||
{ | ||
"type": "rating", | ||
"name": "criticalness", | ||
"title": "... critical, quarrelsome", | ||
"rateMax": 7, | ||
"minRateDescription": "Strongly disagree", | ||
"maxRateDescription": "Strongly agree", | ||
"displayMode": "buttons", | ||
"isRequired": true | ||
}, | ||
{ | ||
"type": "rating", | ||
"name": "dependability", | ||
"title": "... dependable, self-disciplined", | ||
"rateMax": 7, | ||
"minRateDescription": "Strongly disagree", | ||
"maxRateDescription": "Strongly agree", | ||
"displayMode": "buttons", | ||
"isRequired": true | ||
}, | ||
{ | ||
"type": "rating", | ||
"name": "anxiety", | ||
"title": "... anxious, easily upset", | ||
"rateMax": 7, | ||
"minRateDescription": "Strongly disagree", | ||
"maxRateDescription": "Strongly agree", | ||
"displayMode": "buttons", | ||
"isRequired": true | ||
}, | ||
{ | ||
"type": "rating", | ||
"name": "openness", | ||
"title": "... open to new experience, complex", | ||
"rateMax": 7, | ||
"minRateDescription": "Strongly disagree", | ||
"maxRateDescription": "Strongly agree", | ||
"displayMode": "buttons", | ||
"isRequired": true | ||
}, | ||
{ | ||
"type": "rating", | ||
"name": "quietness", | ||
"title": "... reserved, quiet", | ||
"rateMax": 7, | ||
"minRateDescription": "Strongly disagree", | ||
"maxRateDescription": "Strongly agree", | ||
"displayMode": "buttons", | ||
"isRequired": true | ||
}, | ||
{ | ||
"type": "rating", | ||
"name": "sympathy", | ||
"title": "... sympathetic, warm", | ||
"rateMax": 7, | ||
"minRateDescription": "Strongly disagree", | ||
"maxRateDescription": "Strongly agree", | ||
"displayMode": "buttons", | ||
"isRequired": true | ||
}, | ||
{ | ||
"type": "rating", | ||
"name": "carelessness", | ||
"title": "... disorganized, careless", | ||
"rateMax": 7, | ||
"minRateDescription": "Strongly disagree", | ||
"maxRateDescription": "Strongly agree", | ||
"displayMode": "buttons", | ||
"isRequired": true | ||
}, | ||
{ | ||
"type": "rating", | ||
"name": "calmness", | ||
"title": "... calm, emotionally stable", | ||
"rateMax": 7, | ||
"minRateDescription": "Strongly disagree", | ||
"maxRateDescription": "Strongly agree", | ||
"displayMode": "buttons", | ||
"isRequired": true | ||
}, | ||
{ | ||
"type": "rating", | ||
"name": "conventionality", | ||
"title": "... conventional, uncreative", | ||
"rateMax": 7, | ||
"minRateDescription": "Strongly disagree", | ||
"maxRateDescription": "Strongly agree", | ||
"displayMode": "buttons", | ||
"isRequired": true | ||
} | ||
], | ||
"questionsOrder": "random", | ||
"showQuestionNumbers": "off" | ||
} | ||
], | ||
"questionTitleLocation": "top", | ||
"questionsOrder": "initial" | ||
} | ||
], | ||
"showPageTitles": false, | ||
"widthMode": "responsive", | ||
"showCompletedPage": false | ||
} |
Oops, something went wrong.