Skip to content

Commit 4b437de

Browse files
authored
Merge branch 'main' into global-tenant-rest
2 parents dbaf1b0 + 9b3878f commit 4b437de

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

cypress/integration/core-opensearch-dashboards/opensearch-dashboards/apps/data_explorer/shared_links.spec.js

+7-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,13 @@ describe('shared links', () => {
5858
cy.getElementByTestId('shareTopNavButton').should('be.visible').click();
5959
cy.getElementByTestId('copyShareUrlButton')
6060
.invoke('attr', 'data-share-url')
61-
.should('eq', url)
61+
// Even though `CURRENT_TENANT.newTenant` is set to global, that could change and hence this test will remove
62+
// either of the tenants it sees.
63+
.should(
64+
'satisfy',
65+
(copied) =>
66+
copied.replace(/\?security_tenant=(global|private)/, '') === url
67+
)
6268
.then((url) => {
6369
cy.log(url);
6470
cy.request(url).its('status').should('eq', 200);

integtest.sh

+2-3
Original file line numberDiff line numberDiff line change
@@ -216,9 +216,8 @@ fi
216216
# We need to ensure the cypress tests are the last execute process to
217217
# the error code gets passed to the CI.
218218

219-
if [ "$OSTYPE" = "msys" ] || [ "$OSTYPE" = "cygwin" ] || [ "$OSTYPE" = "win32" ]; then
220-
echo "Disable video recording in Windows due to ffmpeg missing libs in Windows Docker Container"
221-
echo "TODO: https://github.com/opensearch-project/opensearch-dashboards-functional-test/issues/1068"
219+
if [ "$DISABLE_VIDEO" = "true" ]; then
220+
echo "Disable video recording when running tests in Cypress"
222221
jq '. + {"video": false}' cypress.json > cypress_new.json # jq does not allow reading and writing on same file
223222
mv -v cypress_new.json cypress.json
224223
fi

0 commit comments

Comments
 (0)