Skip to content
This repository was archived by the owner on Oct 19, 2023. It is now read-only.

Generic Tests Cleanup #203

Open
wants to merge 1 commit into
base: universal-sdk
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 0 additions & 16 deletions coverage-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,6 @@ test('check window after manual scroll', {
'with css stitching': {config: {stitchMode: 'CSS', baselineName: 'TestCheckWindowAfterScroll'}},
'with scroll stitching': {config: {stitchMode: 'Scroll', baselineName: 'TestCheckWindowAfterScroll_Scroll'}},
'with vg': {vg: true, config: {baselineName: 'TestCheckWindowAfterScroll_VG'}},
'on safari 11': {env: {browser: 'safari-11', legacy: true}, features: ['webdriver', 'jsonwire', 'sauce']},
'on safari 12': {env: {browser: 'safari-12', legacy: true}, features: ['webdriver', 'jsonwire', 'sauce']}
},
test({driver, eyes}) {
eyes.open({appName: 'Eyes Selenium SDK - Classic API', viewportSize})
Expand Down Expand Up @@ -1650,20 +1648,6 @@ test('should extract text regions from image', {
},
})

test('should set viewport size', {
page: 'Default',
variants: {
'': {env: {browser: 'chrome'}},
'on edge legacy': {env: {browser: 'edge-18'}, features: ['sauce']},
},
test({driver, eyes, assert}) {
const expectedViewportSize = {width: 600, height: 600}
eyes.constructor.setViewportSize(expectedViewportSize)
const actualViewportSize = driver.executeScript('return {width: window.innerWidth, height: window.innerHeight}').type('Map<String, Number>')
assert.equal(actualViewportSize, expectedViewportSize)
},
})

test('should not fail if scroll root is stale', {
variants: {
'': {env: {browser: 'chrome'}, config: {viewportSize: {width: 600, height: 500}}},
Expand Down