Skip to content

Commit

Permalink
Change order of buttons in DEG, question 2
Browse files Browse the repository at this point in the history
  • Loading branch information
fmhoeger committed Oct 31, 2020
1 parent 401e684 commit 277cc91
Show file tree
Hide file tree
Showing 11 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: psyquest
Title: LongGold psychTestR questionnaires
Version: 1.2.0
Version: 1.2.3
Author: Klaus Frieler, Frank Höger
Maintainer: Frank Höger <[email protected]>
Description: Implementation of 18 questionnaires developed for the LongGold project and based on the psychTestR library.
Expand Down
4 changes: 2 additions & 2 deletions R/DEG.R
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ main_test_deg <- function(label, items, subscales, language, offset = 1, arrange
elts <- psychTestR::join(elts, psychTestR::new_timeline(c(
NAFC_page("q2",
psychTestR::i18n("TDEG_0002_PROMPT"),
sprintf("btn%d_text", 1:2),
labels = map(sprintf("TDEG_0002_CHOICE%d", 1:2), psychTestR::i18n),
sprintf("btn%d_text", c(2, 1)),
labels = map(sprintf("TDEG_0002_CHOICE%d", c(2, 1)), psychTestR::i18n),
arrange_vertically = FALSE,
button_style = "min-width: 60px",
on_complete = function(answer, state, ...) {
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-DEG_DE.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ app$click_next()
app$expect_ui_text("Wir möchten gerne möglichst präzise Informationen von dir bekommen. Wirst du bei dem nachfolgenden Test und den Fragen dein Bestes geben? Ja Nein")
app$click("btn1_text")

app$expect_ui_text("Hast du Probleme oder Schwierigkeiten mit dem Hören (z. B. krankheitsbedingt)? Ja Nein")
app$expect_ui_text("Hast du Probleme oder Schwierigkeiten mit dem Hören (z. B. krankheitsbedingt)? Nein Ja")
app$click("btn1_text")

app$expect_ui_text("Wenn ja, welche? Weiter")
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-DEG_DE_no-q3.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ app$click_next()
app$expect_ui_text("Wir möchten gerne möglichst präzise Informationen von dir bekommen. Wirst du bei dem nachfolgenden Test und den Fragen dein Bestes geben? Ja Nein")
app$click("btn1_text")

app$expect_ui_text("Hast du Probleme oder Schwierigkeiten mit dem Hören (z. B. krankheitsbedingt)? Ja Nein")
app$expect_ui_text("Hast du Probleme oder Schwierigkeiten mit dem Hören (z. B. krankheitsbedingt)? Nein Ja")
app$click("btn2_text")

app$expect_ui_text("Ich bin weiblich männlich anderes möchte ich nicht sagen")
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-DEG_DE_q3_umlaut_and_punctuation.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ app$click_next()
app$expect_ui_text("Wir möchten gerne möglichst präzise Informationen von dir bekommen. Wirst du bei dem nachfolgenden Test und den Fragen dein Bestes geben? Ja Nein")
app$click("btn1_text")

app$expect_ui_text("Hast du Probleme oder Schwierigkeiten mit dem Hören (z. B. krankheitsbedingt)? Ja Nein")
app$expect_ui_text("Hast du Probleme oder Schwierigkeiten mit dem Hören (z. B. krankheitsbedingt)? Nein Ja")
app$click("btn1_text")

app$expect_ui_text("Wenn ja, welche? Weiter")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ app$click_next()
app$expect_ui_text("Wir möchten gerne möglichst präzise Informationen von dir bekommen. Wirst du bei dem nachfolgenden Test und den Fragen dein Bestes geben? Ja Nein")
app$click("btn1_text")

app$expect_ui_text("Hast du Probleme oder Schwierigkeiten mit dem Hören (z. B. krankheitsbedingt)? Ja Nein")
app$expect_ui_text("Hast du Probleme oder Schwierigkeiten mit dem Hören (z. B. krankheitsbedingt)? Nein Ja")
app$click("btn1_text")

app$expect_ui_text("Wenn ja, welche? Weiter")
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-DEG_EN.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ app$click_next()
app$expect_ui_text("We are interested in getting the most accurate information possible from you today. Are you able to give your best shot with the following tests and questions today? Yes No")
app$click("btn1_text")

app$expect_ui_text("Do you have any kind of hearing impairment? (I.e., do you have any problems with your hearing?) Yes No")
app$expect_ui_text("Do you have any kind of hearing impairment? (I.e., do you have any problems with your hearing?) No Yes")
app$click("btn1_text")

app$expect_ui_text("If so, please tell us what kind of hearing impairment you have. Continue")
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-DEG_EN_leap_year.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ app$click_next()
app$expect_ui_text("We are interested in getting the most accurate information possible from you today. Are you able to give your best shot with the following tests and questions today? Yes No")
app$click("btn1_text")

app$expect_ui_text("Do you have any kind of hearing impairment? (I.e., do you have any problems with your hearing?) Yes No")
app$expect_ui_text("Do you have any kind of hearing impairment? (I.e., do you have any problems with your hearing?) No Yes")
app$click("btn1_text")

app$expect_ui_text("If so, please tell us what kind of hearing impairment you have. Continue")
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-DEG_EN_no-q3.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ app$click_next()
app$expect_ui_text("We are interested in getting the most accurate information possible from you today. Are you able to give your best shot with the following tests and questions today? Yes No")
app$click("btn1_text")

app$expect_ui_text("Do you have any kind of hearing impairment? (I.e., do you have any problems with your hearing?) Yes No")
app$expect_ui_text("Do you have any kind of hearing impairment? (I.e., do you have any problems with your hearing?) No Yes")
app$click("btn2_text")

app$expect_ui_text("What is your gender? female male other rather not say")
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-DEG_EN_no_second_language.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ app$click_next()
app$expect_ui_text("We are interested in getting the most accurate information possible from you today. Are you able to give your best shot with the following tests and questions today? Yes No")
app$click("btn1_text")

app$expect_ui_text("Do you have any kind of hearing impairment? (I.e., do you have any problems with your hearing?) Yes No")
app$expect_ui_text("Do you have any kind of hearing impairment? (I.e., do you have any problems with your hearing?) No Yes")
app$click("btn1_text")

app$expect_ui_text("If so, please tell us what kind of hearing impairment you have. Continue")
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-DEG_EN_other_countries.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ app$click_next()
app$expect_ui_text("We are interested in getting the most accurate information possible from you today. Are you able to give your best shot with the following tests and questions today? Yes No")
app$click("btn1_text")

app$expect_ui_text("Do you have any kind of hearing impairment? (I.e., do you have any problems with your hearing?) Yes No")
app$expect_ui_text("Do you have any kind of hearing impairment? (I.e., do you have any problems with your hearing?) No Yes")
app$click("btn1_text")

app$expect_ui_text("If so, please tell us what kind of hearing impairment you have. Continue")
Expand Down

0 comments on commit 277cc91

Please sign in to comment.