Skip to content
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

DTT (Staging > Test) [robo-dtt] #28280

Merged
merged 2 commits into from
Apr 30, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 0 additions & 2 deletions dashboard/test/ui/features/hidden_scripts_eyes.feature
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,11 @@ Feature: Hidden Scripts
Scenario: Hidden Scripts
When I open my eyes to test "hidden scripts"
Given I create an authorized teacher-associated student named "bobby"
And I sign out
Then I sign in as "Teacher_bobby"
Then I am on "http://studio.code.org/courses/allthethingscourse"
And I wait to see ".uitest-togglehidden"
Then I click selector ".uitest-togglehidden:nth(0) div:contains('Hidden')"
And I see no difference for "teacher overview with hidden script"
And I sign out
Then I sign in as "bobby"
And I am on "http://studio.code.org/courses/allthethingscourse"
And I see no difference for "student course overview with hidden script"
Expand Down
2 changes: 0 additions & 2 deletions dashboard/test/ui/features/hidden_stages_eyes.feature
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,12 @@ Feature: Hidden Stages
Scenario: Hidden Stages
When I open my eyes to test "hidden stages"
Given I create an authorized teacher-associated student named "bobby"
And I sign out
Then I sign in as "Teacher_bobby"
Then I am on "http://studio.code.org/s/allthethings"
And I select the first section
And I wait to see ".uitest-togglehidden"
Then I click selector ".uitest-togglehidden:nth(1) div:contains('Hidden')"
And I see no difference for "teacher overview with hidden stage"
And I sign out
Then I sign in as "bobby"
And I am on "http://studio.code.org/s/allthethings"
And I see no difference for "student overview with hidden stage"
Expand Down
30 changes: 0 additions & 30 deletions dashboard/test/ui/features/i18n.feature
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ Scenario: HoC tutorial in Spanish
Then element "#runButton" is visible
And element "#resetButton" is hidden
Then element ".csf-top-instructions p" has "es" text from key "data.level.instructions.maze_2_14"
Given I am on "http://studio.code.org/reset_session/lang/en"
And I wait for 2 seconds

Scenario: Frozen tutorial in Spanish
Given I am on "http://studio.code.org/s/frozen/stage/1/puzzle/2/lang/es"
Expand All @@ -21,8 +19,6 @@ Scenario: Frozen tutorial in Spanish
Then element "#runButton" is visible
And element "#resetButton" is hidden
Then element ".csf-top-instructions p" has "es" text from key "data.short_instructions.frozen perpendicular"
Given I am on "http://studio.code.org/reset_session/lang/en"
And I wait for 2 seconds

Scenario: Minecraft:Agent tutorial in Spanish
Given I am on "http://studio.code.org/s/hero/stage/1/puzzle/1/lang/es"
Expand All @@ -32,8 +28,6 @@ Scenario: Minecraft:Agent tutorial in Spanish
And I click selector "#toggleButton"
And I wait until element ".csf-top-instructions p" is visible
And element ".csf-top-instructions p" has "es" text from key "data.short_instructions.MC_HOC_2017_01_RETRY"
Given I am on "http://studio.code.org/reset_session/lang/en"
And I wait for 2 seconds

Scenario: Toolbox Categories in Spanish
Given I am on "http://studio.code.org/s/allthethings/stage/3/puzzle/7/lang/es"
Expand All @@ -48,8 +42,6 @@ Scenario: Toolbox Categories in Spanish
Then element ".blocklyTreeRoot #\\\:7" has "es" text from key "data.block_categories.Logic"
Then element ".blocklyTreeRoot #\\\:8" has "es" text from key "data.block_categories.Math"
Then element ".blocklyTreeRoot #\\\:9" has "es" text from key "data.block_categories.Text"
Given I am on "http://studio.code.org/reset_session/lang/en"
And I wait for 2 seconds

Scenario: Translated function names in Spanish
Given I am on "http://studio.code.org/s/allthethings/stage/3/puzzle/3/lang/es"
Expand All @@ -61,8 +53,6 @@ Scenario: Translated function names in Spanish
And element "[block-id=28] .blocklyText" has "es" text from key "data.function_names.draw a square"
# Workspace definition block is translated
And element "[block-id=29] > .blocklyNonEditableText > .blocklyText" has "es" text from key "data.function_names.draw a square"
Given I am on "http://studio.code.org/reset_session/lang/en"
And I wait for 2 seconds

Scenario: HoC tutorial in Portuguese
Given I am on "http://studio.code.org/hoc/15/lang/pt-br"
Expand All @@ -72,8 +62,6 @@ Scenario: HoC tutorial in Portuguese
Then element "#runButton" is visible
And element "#resetButton" is hidden
Then element ".csf-top-instructions p" has "pt-BR" text from key "data.level.instructions.maze_2_14"
Given I am on "http://studio.code.org/reset_session/lang/en"
And I wait for 2 seconds

@no_circle
Scenario: Frozen tutorial in Portuguese
Expand All @@ -84,8 +72,6 @@ Scenario: Frozen tutorial in Portuguese
Then element "#runButton" is visible
And element "#resetButton" is hidden
Then element ".csf-top-instructions p" has "pt-BR" text from key "data.short_instructions.frozen perpendicular"
Given I am on "http://studio.code.org/reset_session/lang/en"
And I wait for 2 seconds

Scenario: Minecraft:Agent tutorial in Portuguese
Given I am on "http://studio.code.org/s/hero/stage/1/puzzle/1/lang/pt-br"
Expand All @@ -95,8 +81,6 @@ Scenario: Minecraft:Agent tutorial in Portuguese
And I click selector "#toggleButton"
And I wait until element ".csf-top-instructions p" is visible
And element ".csf-top-instructions p" has "pt-BR" text from key "data.short_instructions.MC_HOC_2017_01_RETRY"
Given I am on "http://studio.code.org/reset_session/lang/en"
And I wait for 2 seconds

Scenario: Toolbox Categories in Portuguese
Given I am on "http://studio.code.org/s/allthethings/stage/3/puzzle/7/lang/pt-br"
Expand All @@ -111,8 +95,6 @@ Scenario: Toolbox Categories in Portuguese
Then element ".blocklyTreeRoot #\\:7" has "pt-BR" text from key "data.block_categories.Logic"
Then element ".blocklyTreeRoot #\\:8" has "pt-BR" text from key "data.block_categories.Math"
Then element ".blocklyTreeRoot #\\:9" has "pt-BR" text from key "data.block_categories.Text"
Given I am on "http://studio.code.org/reset_session/lang/en"
And I wait for 2 seconds

Scenario: Translated function names in Portuguese
Given I am on "http://studio.code.org/s/allthethings/stage/3/puzzle/3/lang/pt-BR"
Expand All @@ -124,8 +106,6 @@ Scenario: Translated function names in Portuguese
And element "[block-id=28] .blocklyText" has "pt-BR" text from key "data.function_names.draw a square"
# Workspace definition block is translated
And element "[block-id=29] > .blocklyNonEditableText > .blocklyText" has "pt-BR" text from key "data.function_names.draw a square"
Given I am on "http://studio.code.org/reset_session/lang/en"
And I wait for 2 seconds

Scenario: HoC tutorial in Arabic (RTL)
Given I am on "http://studio.code.org/hoc/15/lang/ar-sa"
Expand All @@ -135,8 +115,6 @@ Scenario: HoC tutorial in Arabic (RTL)
Then element "#runButton" is visible
And element "#resetButton" is hidden
Then element ".csf-top-instructions p" has "ar-SA" text from key "data.level.instructions.maze_2_14"
Given I am on "http://studio.code.org/reset_session/lang/en"
And I wait for 2 seconds

Scenario: Frozen tutorial in Arabic (RTL)
Given I am on "http://studio.code.org/s/frozen/stage/1/puzzle/2/lang/ar-sa"
Expand All @@ -146,8 +124,6 @@ Scenario: Frozen tutorial in Arabic (RTL)
Then element "#runButton" is visible
And element "#resetButton" is hidden
Then element ".csf-top-instructions p" has "ar-SA" text from key "data.short_instructions.frozen perpendicular"
Given I am on "http://studio.code.org/reset_session/lang/en"
And I wait for 2 seconds

Scenario: Minecraft:Agent tutorial in Arabic (RTL)
Given I am on "http://studio.code.org/s/hero/stage/1/puzzle/1/lang/ar-sa"
Expand All @@ -157,8 +133,6 @@ Scenario: Minecraft:Agent tutorial in Arabic (RTL)
And I click selector "#toggleButton"
And I wait until element ".csf-top-instructions p" is visible
Then element ".csf-top-instructions p" has "ar-SA" text from key "data.short_instructions.MC_HOC_2017_01_RETRY"
Given I am on "http://studio.code.org/reset_session/lang/en"
And I wait for 2 seconds

Scenario: Translated function names in Arabic
Given I am on "http://studio.code.org/s/allthethings/stage/3/puzzle/3/lang/ar-SA"
Expand All @@ -170,8 +144,6 @@ Scenario: Translated function names in Arabic
And element "[block-id=28] .blocklyText" has "ar-SA" text from key "data.function_names.draw a square"
# Workspace definition block is translated
And element "[block-id=29] > .blocklyNonEditableText > .blocklyText" has "ar-SA" text from key "data.function_names.draw a square"
Given I am on "http://studio.code.org/reset_session/lang/en"
And I wait for 2 seconds

Scenario: Toolbox Categories in Arabic (RTL)
Given I am on "http://studio.code.org/s/allthethings/stage/3/puzzle/7/lang/ar-sa"
Expand All @@ -186,8 +158,6 @@ Scenario: Toolbox Categories in Arabic (RTL)
Then element ".blocklyTreeRoot #\\:7" has "ar-SA" text from key "data.block_categories.Logic"
Then element ".blocklyTreeRoot #\\:8" has "ar-SA" text from key "data.block_categories.Math"
Then element ".blocklyTreeRoot #\\:9" has "ar-SA" text from key "data.block_categories.Text"
Given I am on "http://studio.code.org/reset_session/lang/en"
And I wait for 2 seconds

Scenario: English fallback for missing dashboard or pegasus strings in Azerbaijani
Given I am on "http://studio.code.org/lang/az-az"
Expand Down
5 changes: 0 additions & 5 deletions dashboard/test/ui/features/stage_lock.feature
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ Background:
@eyes
Scenario: Stage Locking Dialog
When I open my eyes to test "stage locking"
And I sign out
Then I sign in as "Teacher_bobby"
Then I am on "http://studio.code.org/s/allthethings"
And I select the first section
Expand All @@ -32,15 +31,13 @@ Scenario: Lock settings for students

# teacher unlocks

When I sign out
And I sign in as "Teacher_bobby"
And I am on "http://studio.code.org/s/allthethings"
# Wait until detail view loads
And I wait until element "span:contains(Lesson 1: Jigsaw)" is visible
And I open the stage lock dialog
And I unlock the stage for students
And I wait until element ".modal-backdrop" is gone
And I sign out

# now unlocked/not tried for student

Expand Down Expand Up @@ -69,15 +66,13 @@ Scenario: Lock settings for students

# teacher marks readonly

When I sign out
And I sign in as "Teacher_bobby"
And I am on "http://studio.code.org/s/allthethings"
# Wait until detail view loads
And I wait until element "span:contains(Lesson 1: Jigsaw)" is visible
And I open the stage lock dialog
And I show stage answers for students
And I wait until element ".modal-backdrop" is gone
And I sign out

# now unlocked/submitted for student

Expand Down
3 changes: 0 additions & 3 deletions dashboard/test/ui/features/teacher_student_toggle.feature
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ Feature: Teacher Student Toggle
Scenario: Toggle on Multi Level
When I open my eyes to test "toggle on multi level"
Given I create an authorized teacher-associated student named "Daenerys"
And I sign out
Then I sign in as "Teacher_Daenerys"
Then I am on "http://studio.code.org/s/allthethings/stage/9/puzzle/1"
And I see no difference for "page load"
Expand All @@ -26,7 +25,6 @@ Scenario: Toggle on Multi Level
Scenario: Toggle on Hidden Maze Level
When I open my eyes to test "toggle on hidden maze level"
Given I create an authorized teacher-associated student named "Arya"
And I sign out
Then I sign in as "Teacher_Arya"
Then I am on "http://studio.code.org/s/allthethings"
And I select the first section
Expand All @@ -45,7 +43,6 @@ Scenario: Toggle on Hidden Maze Level
Scenario: Toggle on Lockable Level
When I open my eyes to test "toggle on a lockable level"
Given I create an authorized teacher-associated student named "Joffrey"
And I sign out
Then I sign in as "Teacher_Joffrey"

Then I am on "http://studio.code.org/s/allthethings/lockable/1/puzzle/1/page/1?noautoplay=true"
Expand Down