Skip to content

Commit

Permalink
fix: ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakub Sobolewski committed Sep 15, 2023
1 parent 3ea5a50 commit 914518c
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 39 deletions.
10 changes: 0 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
2 changes: 1 addition & 1 deletion inst/examples/e2e-test/R/fluentInputs.R
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
28 changes: 0 additions & 28 deletions js/cypress/integration/e2e-test/fluentComponents.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
Expand Down Expand Up @@ -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()', () => {
Expand Down Expand Up @@ -465,7 +442,6 @@ describe('Reset after toggled visibility', () => {
dropdownChangeTest();
toggleVisibility();
dropdownDefaultTest();
dropdownMultiselectChangeTest();
});

it('SwatchColorPicker.shinyInput() works', () => {
Expand Down Expand Up @@ -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');
});
Expand Down

0 comments on commit 914518c

Please sign in to comment.