Skip to content

Commit

Permalink
chore: add test
Browse files Browse the repository at this point in the history
  • Loading branch information
waterplea committed May 15, 2023
1 parent 0a5d873 commit 41886f5
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -173,4 +173,17 @@ describe(`Dialogs`, () => {
cy.get(`tui-dialog`).should(`be.visible`);
});
});

describe(`confirmation`, () => {
it(`buttons wrap`, () => {
cy.tuiVisit(
`components/prompt/API?no=Very%20Long%20long%20text&yes=Long%20long%20text`,
);

cy.get(`tui-doc-page .t-content button`).first().click();
cy.get(`tui-dialog`)
.tuiWaitBeforeScreenshot()
.matchImageSnapshot(`1-confirmation`);
});
});
});

0 comments on commit 41886f5

Please sign in to comment.