Skip to content

Commit 8f3d48b

Browse files
authored
Merge pull request #1043 from Piumal1999/fix-api-policy-test
Fix the failing API specific policy test
2 parents 1ed8e0d + 3739b7d commit 8f3d48b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/cypress/integration/publisher/017-api-policies/01-api-specific-policy.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ describe("Common Policies", () => {
6565

6666
// Download file
6767
cy.get('[data-testid="download-policy-file"]').click();
68-
cy.get('[data-testid="done-view-policy-file"]').click();
68+
cy.get('[aria-label="Close"]').click();
6969

7070
// Drag and drop the policy to attach it
7171
const dataTransfer = new DataTransfer();
@@ -129,7 +129,7 @@ describe("Common Policies", () => {
129129

130130
// Verify version 2 details
131131
cy.get('[data-testid="description"] input').should('have.value', 'Enhanced API specific policy description version 2');
132-
cy.get('[data-testid="done-view-policy-file"]').click();
132+
cy.get('[aria-label="Close"]').click();
133133

134134
// Drag and drop version 2 policy
135135
const dataTransferV2 = new DataTransfer();

0 commit comments

Comments
 (0)