Skip to content

Commit

Permalink
Add ouia locator for 'skip tour and start runner' button
Browse files Browse the repository at this point in the history
  • Loading branch information
Jozef Marko committed Sep 15, 2021
1 parent 9420f8a commit 74fef44
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 3 additions & 3 deletions packages/online-editor/it-tests/integration/DMNRunnerTest.ts
Expand Up @@ -34,10 +34,10 @@ describe("DMN Runner Test", () => {
expect($logo.attr("alt")).contain("dmn");
});

// start the DMN Runner set up
cy.get("[data-ouia-component-id='dmn-guided-tour'] button").contains("Skip tour and start DMN Runner").click();
// start the DMN Runner
cy.get("[data-ouia-component-id='dmn-guided-tour-skip-runner-start-button']").click();

// fill in
// fill in DMN Runner inputs panel
cy.get("[data-testid='dmn-form']").within(($form) => {
cy.get("input[name='Credit Score.FICO']").type("300");
cy.get("input[name='Applicant Data.Age']").type("25");
Expand Down
6 changes: 5 additions & 1 deletion packages/online-editor/src/tour/GuidedTourInitializer.tsx
Expand Up @@ -74,7 +74,11 @@ function getOnlineEditorTutorial(i18n: OnlineI18n) {
<Text>{i18n.guidedTour.init.dmnRunnerIntro}</Text>

<Text>{" "}</Text>
<Button onClick={() => dismissAndStartDmnRunner(props)} variant="link">
<Button
ouiaId="dmn-guided-tour-skip-runner-start-button"
onClick={() => dismissAndStartDmnRunner(props)}
variant="link"
>
{i18n.guidedTour.init.skipTourAndUseDmnRunner}
</Button>
<br />
Expand Down

0 comments on commit 74fef44

Please sign in to comment.