Skip to content

Commit

Permalink
Adding some commentary around the testing
Browse files Browse the repository at this point in the history
  • Loading branch information
rmbielby committed Feb 28, 2024
1 parent 73cd7b2 commit cafbec1
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 1 deletion.
Binary file not shown.
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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 6 additions & 1 deletion tests/testthat/test-shinytest2.R
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,21 @@ test_that("{shinytest2} recording: Transition-matrices-dashboard", {
name = "Transition-matrices-dashboard",
height = 1072, width = 1176
)
# Test 1 - accept cookies and switch to dashboard page
app$click("cookies-cookie_accept")
app$set_inputs(navlistPanel = "dashboard")
app$expect_values(input = inputs, output = outputs)
# Test 2 - select percentage of pupils as metric
app$set_inputs(num_perc_select = "Percentage of pupils")
app$expect_values(input = inputs, output = outputs)
# Test 3 - select Chemistry as subject
app$set_inputs(subjects_select = "Chemistry")
app$expect_values(input = inputs, output = outputs)
# Test 4 - select attainment range
app$set_inputs(KS2_dropdown_attainment_subject = "102.5 - 104.5")
app$expect_values(input = inputs, output = outputs)
app$set_inputs(characteristic_select = "EAL")
# Test 4 - select a characteristic
app$set_inputs(characteristic_select = "EAL", KS2_dropdown_attainment_subject = "Less than 80")

Check notice

Code scanning / lintr

Lines should not be more than 80 characters. This line is 97 characters. Note test

Lines should not be more than 80 characters. This line is 97 characters.
app$expect_values(input = inputs, output = outputs)
app$set_inputs(tabsetpanels = "Pupil progress in KS4 measures")
app$expect_values(input = inputs, output = outputs)
Expand Down

0 comments on commit cafbec1

Please sign in to comment.