File tree 2 files changed +9
-4
lines changed
cypress/integration/core-opensearch-dashboards/opensearch-dashboards/apps/data_explorer
2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,13 @@ describe('shared links', () => {
58
58
cy . getElementByTestId ( 'shareTopNavButton' ) . should ( 'be.visible' ) . click ( ) ;
59
59
cy . getElementByTestId ( 'copyShareUrlButton' )
60
60
. 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 ( / \? s e c u r i t y _ t e n a n t = ( g l o b a l | p r i v a t e ) / , '' ) === url
67
+ )
62
68
. then ( ( url ) => {
63
69
cy . log ( url ) ;
64
70
cy . request ( url ) . its ( 'status' ) . should ( 'eq' , 200 ) ;
Original file line number Diff line number Diff line change 216
216
# We need to ensure the cypress tests are the last execute process to
217
217
# the error code gets passed to the CI.
218
218
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"
222
221
jq ' . + {"video": false}' cypress.json > cypress_new.json # jq does not allow reading and writing on same file
223
222
mv -v cypress_new.json cypress.json
224
223
fi
You can’t perform that action at this time.
0 commit comments