2019-12-23 10:34:28 +00:00
|
|
|
import {
|
|
|
|
visitAndApproveStorage
|
2021-12-28 14:02:29 +00:00
|
|
|
} from '../../support/ui-test-helper.js'
|
2019-12-23 10:34:28 +00:00
|
|
|
|
|
|
|
describe('UI - Tool selection', function () {
|
|
|
|
beforeEach(() => {
|
2021-12-28 14:02:29 +00:00
|
|
|
visitAndApproveStorage()
|
|
|
|
})
|
2019-12-23 10:34:28 +00:00
|
|
|
|
|
|
|
it('should set rectangle selection by click', function () {
|
2021-05-09 17:29:45 +00:00
|
|
|
cy.get('#tools_rect')
|
2021-12-28 14:02:29 +00:00
|
|
|
.should('not.have.attr', 'pressed')
|
2021-05-09 17:29:45 +00:00
|
|
|
cy.get('#tools_rect')
|
2021-05-12 23:00:09 +00:00
|
|
|
.trigger('click', { force: true })
|
2021-12-28 14:02:29 +00:00
|
|
|
.should('have.attr', 'pressed')
|
|
|
|
})
|
|
|
|
})
|