bug: Cypress | fix analytics tests
Closed this issue · 0 comments
igorgiumellizup commented
Analytics tests are failing on CI:
Analytics validation
✓ Analytics 01 - Action with no remote analytics config and not declared in the local config (should not create record) (2340ms)
1) Analytics 02 - Action with no remote analytics config and declared in the local config (should create record with params in config)
2) Analytics 03 - Action with remote analytics config and not declared in the local config (should create record with params from remote config)
✓ Analytics 04 - Action with analytics disabled in the remote config (should not create record) (419ms)
3) Analytics 05 - View loaded, screen analytics enabled in the config (should create record)
2 passing (37s)
3 failing
1) Analytics validation
Analytics 02 - Action with no remote analytics config and declared in the local config (should create record with params in config):
AssertionError: Timed out retrying after 10000ms: Expected to find content: '{"type":"screen","platform":"WEB Angular","timestamp":1612148400000,"screen":"analytics2"},{"type":"action","platform":"WEB Angular","event":"onPress","component":{"type":"beagle:button","id":"_beagle_5","xPath":"BODY/APP-ROOT[1]/BEAGLE[1]/BEAGLE-REMOTE-VIEW/BEAGLE-SCREEN[20]/BEAGLE-CONTAINER/DIV/BEAGLE-BUTTON[4]/","position":{"x":8,"y":26}},"beagleAction":"beagle:confirm","attributes":{"message":"Confirm Message"},"timestamp":1612148400000,"screen":"/analytics2"}' within the element: <div#analyticsCypress> but never did.
at Object.getAnalyticsInArray (http://localhost:4200/__cypress/tests?p=cypress/integration/AnalyticsScreen.feature:103:84)
at AnalyticsPage.verifyIfAnalyticsIsCreated (http://localhost:4200/__cypress/tests?p=cypress/integration/AnalyticsScreen.feature:684:38)
at Context.eval (http://localhost:4200/__cypress/tests?p=cypress/integration/AnalyticsScreen.feature:1914:19)
at Context.resolveAndRunStepDefinition (http://localhost:4200/__cypress/tests?p=cypress/integration/AnalyticsScreen.feature:13102:29)
at Context.eval (http://localhost:4200/__cypress/tests?p=cypress/integration/AnalyticsScreen.feature:12446:35)
2) Analytics validation
Analytics 03 - Action with remote analytics config and not declared in the local config (should create record with params from remote config):
AssertionError: Timed out retrying after 10000ms: Expected to find content: '{"type":"screen","platform":"WEB Angular","timestamp":1612148400000,"screen":"analytics2"},{"type":"action","platform":"WEB Angular","event":"onPress","component":{"type":"beagle:button","id":"_beagle_6","xPath":"BODY/APP-ROOT[1]/BEAGLE[1]/BEAGLE-REMOTE-VIEW/BEAGLE-SCREEN[20]/BEAGLE-CONTAINER/DIV/BEAGLE-BUTTON[12]/","position":{"x":573.90625,"y":26}},"beagleAction":"beagle:alert","attributes":{"message":"AlertMessage"},"timestamp":1612148400000,"screen":"/analytics2"}' within the element: <div#analyticsCypress> but never did.
at Object.getAnalyticsInArray (http://localhost:4200/__cypress/tests?p=cypress/integration/AnalyticsScreen.feature:103:84)
at AnalyticsPage.verifyIfAnalyticsIsCreated (http://localhost:4200/__cypress/tests?p=cypress/integration/AnalyticsScreen.feature:684:38)
at Context.eval (http://localhost:4200/__cypress/tests?p=cypress/integration/AnalyticsScreen.feature:1914:19)
at Context.resolveAndRunStepDefinition (http://localhost:4200/__cypress/tests?p=cypress/integration/AnalyticsScreen.feature:13102:29)
at Context.eval (http://localhost:4200/__cypress/tests?p=cypress/integration/AnalyticsScreen.feature:12446:35)
3) Analytics validation
Analytics 05 - View loaded, screen analytics enabled in the config (should create record):
AssertionError: Timed out retrying after 10000ms: Expected to find content: '{"type":"screen","platform":"WEB Angular","timestamp":1612148400000,"screen":"analytics2"}' within the element: <div#analyticsCypress> but never did.
at Object.getAnalyticsInArray (http://localhost:4200/__cypress/tests?p=cypress/integration/AnalyticsScreen.feature:103:84)
at AnalyticsPage.verifyIfAnalyticsIsCreated (http://localhost:4200/__cypress/tests?p=cypress/integration/AnalyticsScreen.feature:684:38)
at Context.eval (http://localhost:4200/__cypress/tests?p=cypress/integration/AnalyticsScreen.feature:1914:19)
at Context.resolveAndRunStepDefinition (http://localhost:4200/__cypress/tests?p=cypress/integration/AnalyticsScreen.feature:13102:29)
at Context.eval (http://localhost:4200/__cypress/tests?p=cypress/integration/AnalyticsScreen.feature:12446:35)