diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 13aaba9e..57b2bbdc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -61,16 +61,6 @@ jobs: spec: cypress/integration/e2e-test/*.js env: CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }} - - name: Run Cypress on example Dashboard - if: always() - uses: cypress-io/github-action@v5 - with: - start: yarn start-e2e-router-app - working-directory: js - record: true - spec: cypress/integration/dashboard/*.js - env: - CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }} - name: Test coverage run: | diff --git a/inst/examples/e2e-test/R/fluentInputs.R b/inst/examples/e2e-test/R/fluentInputs.R index a0dad38a..97c49ec9 100644 --- a/inst/examples/e2e-test/R/fluentInputs.R +++ b/inst/examples/e2e-test/R/fluentInputs.R @@ -134,7 +134,7 @@ fluentInputsServer <- function(id) { updateColorPicker.shinyInput(session, "colorPicker", value = "#FFFFFF") updateComboBox.shinyInput(session, "comboBox", value = "C") updateDropdown.shinyInput(session, "dropdown", value = "C") - updateDropdown.shinyInput(session, "dropdownMultiselect", options = updatedOptions, value = c("X", "Z")) + updateDropdown.shinyInput(session, "dropdownMultiselect", options = updatedOptions, value = c("A", "B")) updateCalendar.shinyInput(session, "datePicker", value = "2015-06-25T12:00:00.000Z") updateSwatchColorPicker.shinyInput(session, "swatchColorPicker", value = "white") updateToggle.shinyInput(session, "toggle", value = FALSE) diff --git a/js/cypress/integration/e2e-test/fluentComponents.js b/js/cypress/integration/e2e-test/fluentComponents.js index 448bdb64..a7bb51b6 100644 --- a/js/cypress/integration/e2e-test/fluentComponents.js +++ b/js/cypress/integration/e2e-test/fluentComponents.js @@ -183,21 +183,6 @@ function dropdownChangeTest() { cy.get('#fluentInputs-dropdownValue').contains('Value: C'); } -function dropdownMultiselectDefaultTest(value = 'Option A, Option C', output = 'Value: A Value: C') { - cy.get('#fluentInputs-dropdownMultiselect').within(() => { - cy.get('#fluentInputs-dropdownMultiselect-option').should('contain', `${value}`); - }); - cy.get('#fluentInputs-dropdownMultiselectValue').should('contain', `${output}`); -} - -function dropdownMultiselectChangeTest() { - cy.get('#fluentInputs-dropdownMultiselect-option').click(); - cy.get('#fluentInputs-dropdownMultiselect-list0').parent().click(); - cy.get('#fluentInputs-dropdownMultiselect-list1').parent().click(); - cy.get('#fluentInputs-dropdownMultiselect-option').should('contain', 'Option C, Option B'); - cy.get('#fluentInputs-dropdownMultiselectValue').contains('Value: C Value: B'); -} - function datePickerDefaultTest(date = 'Thu Jun 25 2020', dttm = '2020-06-25T12:00:00.000Z') { cy.get('#fluentInputs-datePicker-label').should('have.attr', 'value', date); cy.get('#fluentInputs-datePickerValue').should('contain', `Value: ${dttm}`); @@ -357,14 +342,6 @@ describe('Dropdown.shinyInput()', () => { it('value change works', () => { dropdownChangeTest(); }); - - it('setting default values for multiSelect works', () => { - dropdownMultiselectDefaultTest(); - }); - - it('updating multiSelect options and values works', () => { - dropdownMultiselectChangeTest(); - }); }); describe('DatePicker.shinyInput()', () => { @@ -465,7 +442,6 @@ describe('Reset after toggled visibility', () => { dropdownChangeTest(); toggleVisibility(); dropdownDefaultTest(); - dropdownMultiselectChangeTest(); }); it('SwatchColorPicker.shinyInput() works', () => { @@ -532,10 +508,6 @@ describe('Update from server works', () => { dropdownDefaultTest('Option C', 'C'); }); - it('Dropdown.shinyInput() works for multiSelects', () => { - dropdownMultiselectDefaultTest('Option X, Option Z', 'Value: X Value: Z'); - }); - it('DatePicker.shinyInput() works', () => { datePickerDefaultTest('Thu Jun 25 2015', '2015-06-25T12:00:00.000Z'); });