Skip to content

Commit

Permalink
remove button wrapper from successContent test
Browse files Browse the repository at this point in the history
Signed-off-by: huongg <[email protected]>
  • Loading branch information
Huongg committed May 21, 2024
1 parent 29dbc9f commit 57fa21c
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions cypress/tests/ui/flowchart/shareable-urls.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,12 +186,10 @@ describe('Shareable URLs with empty localStorage', () => {
});
});

it('verifies that AWS link is generated with correct inputs on Republish button click #TC-61', () => {
it.only('verifies that AWS link is generated with correct inputs on Republish button click #TC-61', () => {
const bucketName = 'myBucketName';
const endpointName = 'http://www.example.com';
const primaryButtonNodeText = 'Publish';
const primaryButtonNodeTextVariant = 'Publish';
const secondaryButtonNodeText = 'Link Settings';

// Intercept the network request to mock with a fixture
cy.__interceptRest__(
Expand All @@ -215,17 +213,6 @@ describe('Shareable URLs with empty localStorage', () => {
.contains(primaryButtonNodeText)
.click();

// Wait for the POST request to complete
cy.wait('@publishRequest');

// Action
cy.get('.shareable-url-modal__button-wrapper button')
.contains(secondaryButtonNodeText)
.click();
cy.get('.shareable-url-modal__button-wrapper button')
.contains(primaryButtonNodeTextVariant)
.click();

// Wait for the POST request to complete and check the mocked response
cy.wait('@publishRequest').then((interception) => {
// Assert after action
Expand Down

0 comments on commit 57fa21c

Please sign in to comment.