diff --git a/client/web/divkit/tests/hermione/json/regression/gallery_scroll.hermione.js b/client/web/divkit/tests/hermione/json/regression/gallery_scroll.hermione.js index 8b123ac79..0e45d3df7 100644 --- a/client/web/divkit/tests/hermione/json/regression/gallery_scroll.hermione.js +++ b/client/web/divkit/tests/hermione/json/regression/gallery_scroll.hermione.js @@ -26,9 +26,6 @@ describe('regression', () => { offset: 300 }); await this.browser.assertView('right_swipe', '#root'); - - const logs = await this.browser.execute(() => window.divkitLogs); - logs.length.should.equal(2); }); }); -}); \ No newline at end of file +}); diff --git a/client/web/divkit/tests/hermione/json/regression/gallery_visibility_actions.hermione.js b/client/web/divkit/tests/hermione/json/regression/gallery_visibility_actions.hermione.js new file mode 100644 index 000000000..57c7832ba --- /dev/null +++ b/client/web/divkit/tests/hermione/json/regression/gallery_visibility_actions.hermione.js @@ -0,0 +1,37 @@ +describe('regression', () => { + describe('Visibility_actions in gallery', () => { + beforeEach(async function() { + await this.browser.execute(() => { + window.divkitLogs = []; + }); + await this.browser.yaOpenRegressionJson('gallery/gallery_swipe'); + }); + + hermione.only.in('chromeMobile', 'pointerType="touch" is not supported on firefox'); + it('Horizontal swipe visibility action', async function() { + // Wait for visibility action logging + await this.browser.pause(1000); + await this.browser.yaSwipe({ + selector: 'div[role=tabpanel]', + direction: 'left', + duration: 500, + offset: 300 + }); + await this.browser.assertView('swipe_left__action', '#root'); + + await this.browser.yaSwipe({ + selector: 'div[role=tabpanel]', + direction: 'right', + duration: 500, + offset: 300 + }); + await this.browser.assertView('swipe_right__action', '#root'); + + let logs = await this.browser.execute(() => window.divkitLogs); + logs = logs.map(log => log.action.log_id); + logs[0].should.equal('item/01'); + logs[1].should.equal('item/02'); + logs[2].should.equal('item/01'); + }); + }); +}); diff --git a/client/web/divkit/tests/hermione/json/regression/pager_visibility_actions.hermione.js b/client/web/divkit/tests/hermione/json/regression/pager_visibility_actions.hermione.js index 10000b164..9eb068a21 100644 --- a/client/web/divkit/tests/hermione/json/regression/pager_visibility_actions.hermione.js +++ b/client/web/divkit/tests/hermione/json/regression/pager_visibility_actions.hermione.js @@ -1,5 +1,5 @@ describe('regression', () => { - describe('Visibility_actions in pager', () => { + describe('Visibility actions in pager', () => { beforeEach(async function() { await this.browser.execute(() => { window.divkitLogs = []; diff --git a/client/web/divkit/tests/hermione/screens/regression/Visibility_actions_in_gallery/Horizontal_swipe_visibility_action/chromeMobile/swipe_left__action.png b/client/web/divkit/tests/hermione/screens/regression/Visibility_actions_in_gallery/Horizontal_swipe_visibility_action/chromeMobile/swipe_left__action.png new file mode 100644 index 000000000..456b3a2e7 Binary files /dev/null and b/client/web/divkit/tests/hermione/screens/regression/Visibility_actions_in_gallery/Horizontal_swipe_visibility_action/chromeMobile/swipe_left__action.png differ diff --git a/client/web/divkit/tests/hermione/screens/regression/Visibility_actions_in_gallery/Horizontal_swipe_visibility_action/chromeMobile/swipe_right__action.png b/client/web/divkit/tests/hermione/screens/regression/Visibility_actions_in_gallery/Horizontal_swipe_visibility_action/chromeMobile/swipe_right__action.png new file mode 100644 index 000000000..6c88abf1b Binary files /dev/null and b/client/web/divkit/tests/hermione/screens/regression/Visibility_actions_in_gallery/Horizontal_swipe_visibility_action/chromeMobile/swipe_right__action.png differ diff --git a/test_data/regression_test_data/index.json b/test_data/regression_test_data/index.json index 14fc57253..ec981a8ab 100644 --- a/test_data/regression_test_data/index.json +++ b/test_data/regression_test_data/index.json @@ -863,6 +863,9 @@ }, { "title": "Visibility actions in gallery", + "automated": [ + "web" + ], "tags": [ "visibility_actions" ],