Skip to content

Commit

Permalink
merging in changes on remote
Browse files Browse the repository at this point in the history
Signed-off-by: leanneeliatra <[email protected]>
  • Loading branch information
leanneeliatra committed Jul 24, 2023
1 parent 45daf83 commit 0b29197
Showing 1 changed file with 13 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,18 @@ if (Cypress.env('SECURITY_ENABLED')) {
.should('be.visible')
.click();

// Open top share navigation to access copy short url
cy.getElementByTestId('shareTopNavButton').should('be.visible').click();
cy.getElementByTestId('savedObjectTitle').type(dashboardName);

cy.intercept({
method: 'POST',
url: '/api/saved_objects/_bulk_get',
}).as('waitForReloadingDashboard');
cy.getElementByTestId('confirmSaveSavedObjectButton').click();
cy.wait('@waitForReloadingDashboard');
cy.wait(2000);

// 2. Open top share navigation to access copy short url
cy.getElementByTestId('shareTopNavButton').click();
cy.getElementByTestId('sharePanel-Permalinks').click();

// 3. Create the short url, wait for response
Expand All @@ -96,7 +106,7 @@ if (Cypress.env('SECURITY_ENABLED')) {
cy.wait('@getShortUrl');

//4. Switch tenant & visit shortURL link to ensure tenant from short URL is retained
cy.get('[data-test-subj="copyShareUrlButton"]')
cy.getElementByTestId('copyShareUrlButton')
.invoke('attr', 'data-share-url')
.should('contain', '/goto/')
.then((shortUrl) => {
Expand Down

0 comments on commit 0b29197

Please sign in to comment.