Skip to content

Commit

Permalink
fix: E2E dashboard test
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakub Sobolewski committed Jun 30, 2023
1 parent bc70053 commit 21fe840
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
15 changes: 7 additions & 8 deletions inst/examples/dashboard/examples.R
Original file line number Diff line number Diff line change
Expand Up @@ -113,14 +113,13 @@ makeExamplePage <- function(name, example) {
}

makeLiveExamplePage <- function(example, id) {
tagList(
makeCard(
title = Text("Live example", variant = "large"),
content = tagList(
example$ui(id),
Separator(),
pre(example$code)
)
makeCard(
title = Text("Live example", variant = "large"),
content = div(
id = id,
example$ui(id),
Separator(),
pre(example$code)
)
)
}
Expand Down
4 changes: 2 additions & 2 deletions js/cypress/integration/dashboard/dashboard.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ describe('Dashboard', () => {
cy.visit('http://localhost:8889/#!/Slider');
const steps = 15;
const arrows = '{rightarrow}'.repeat(steps);
cy.get('.ms-Slider-slideBox')
cy.get('#Slider .ms-Slider-slideBox')
.focus()
.type(arrows);
cy.contains('Value: 15');
});
it('Dropdown', () => {
cy.visit('http://localhost:8889/#!/Dropdown');
cy.get('.ms-Dropdown-title').click();
cy.get('#Dropdown .ms-Dropdown-title').click();
cy.get('.ms-Dropdown-item').contains('Option C').click();
cy.contains('Value: C');
});
Expand Down

0 comments on commit 21fe840

Please sign in to comment.