Use Cypress Testing Library - consent.spec.ts (#10514)
Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>
This commit is contained in:
parent
c8585be2f8
commit
737b30d2fa
1 changed files with 4 additions and 2 deletions
|
@ -46,8 +46,10 @@ describe("Consent", () => {
|
||||||
|
|
||||||
// Accept terms & conditions
|
// Accept terms & conditions
|
||||||
cy.get(".mx_QuestionDialog").within(() => {
|
cy.get(".mx_QuestionDialog").within(() => {
|
||||||
cy.contains("#mx_BaseDialog_title", "Terms and Conditions");
|
cy.get("#mx_BaseDialog_title").within(() => {
|
||||||
cy.get(".mx_Dialog_primary").click();
|
cy.findByText("Terms and Conditions");
|
||||||
|
});
|
||||||
|
cy.findByRole("button", { name: "Review terms and conditions" }).click();
|
||||||
});
|
});
|
||||||
|
|
||||||
cy.get<SinonStub>("@windowOpen").then((stub) => {
|
cy.get<SinonStub>("@windowOpen").then((stub) => {
|
||||||
|
|
Loading…
Reference in a new issue