From a01426c03082b8d3a2810cd07035711502d30059 Mon Sep 17 00:00:00 2001 From: Junaid Ahmed Date: Sun, 15 Mar 2020 07:21:29 +0000 Subject: [PATCH] feat(integration-testing): Integration Testing | 009 - Added integration testing --- cypress/fixtures/adult-1868750_1920.jpg | Bin 0 -> 23277 bytes cypress/integration/application.spec.js | 52 +++++++++++++++++++++++- 2 files changed, 51 insertions(+), 1 deletion(-) create mode 100644 cypress/fixtures/adult-1868750_1920.jpg diff --git a/cypress/fixtures/adult-1868750_1920.jpg b/cypress/fixtures/adult-1868750_1920.jpg new file mode 100644 index 0000000000000000000000000000000000000000..32acabf2e4a486a2b8cc29404873d5781f27feba GIT binary patch literal 23277 zcma&N2V4_b`!7BqAd3~1CJL;IQlv|lqEZ9|q_+Sf1cZViNN5@?zqWVv>>~;2k0!eh5!HUlD}I)qiSGgL>Gb zoZUQ~kqACojdqWbUY<%inBqZcD?p*o%8HfMk`TzQi82EBAnlS%M zxc?M^h@qYS3svyqU$8?FAi_}~lz%P)r;h*%ID7_&4BbyM@DgBRU|?WmU}9us`i%+v zKf%nz#C+l;3(E->mXl{s9?{v8r_Y={bNb}@^A|3hKYxjvoBI;)zeIQZ`0-OGPjQ|- z%XyKFmF?ocKm5O*{QL~CGSlVL2Opzj1?XAnjv=U(a|4cU}QSZ zO!tfaEeAQF{c;wdr#nV}jFI6u!*M1?hGVp1)?*C6GfLb!XJB{bJd^t~$>T8}zT7pu zdSSWvu~f$x>UnGi^F1SvYq!|y?fKbdR!TZ$OO2&jkKPQ>)6+5h{eC)D`rjpvfz>d$ z+g*`7|LjBYU8$dgz{z7^6IqY30xH14HCEMJ-~w=gUiBgH5TMUzP6zl3RD*$Z0N?}! z0PsW=c*sZpOf~r7m4}S!u>inX+A*8{0zD%=of}v+y*PMH52SkW`rxCsg6+KkR>^i3ppU0j{r@9Xu!NabnPIT1fGWWH47_Hbwg05* z1t0=A%MAVsZcLpl01Mbwa06I^(*eeZ!4DZ}{Qn|4)nEZeI#s@Zu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p)Zo$Sv-?=+IXB3|`fToMc?e`OVxl44?C=p$wFcl>}-yt@0J_ z*45w^2W%r~Ad_fuE6_L=1}-D^>X8~sr<~aq$~i4gB_AY?*_Obx^O2 z{Lf{sCIpVm{Gb&cc}HaNBCo^_wNgJN#rUe%?Y@5nyd%}b9pLrvHzbm&FCGtZ*3i^#^p40M zMN)9Rwq&mPwr0WmN0IS)p;@20$X(t?}`(sfS_*mn6|7k!AF!s9Km-}5=Z-*4m!RhC+h z{b($^BZ3JYYs`;ZkN0~#CG|vj!Mwqt#wyu7e&na+;q7&PUCiaOUnW{TR4Dw?iub@_ vfw3d9Bce1JcXpHI8X2$lv~7rG#dy(PbHZ}(ubx0@NbQFo$aka@c1HgPJrmbl literal 0 HcmV?d00001 diff --git a/cypress/integration/application.spec.js b/cypress/integration/application.spec.js index 8b0a600..4dc8afa 100644 --- a/cypress/integration/application.spec.js +++ b/cypress/integration/application.spec.js @@ -1,8 +1,58 @@ /// -describe('Application', () => { +const messages = { + READY: 'Application is ready to use', + PROCESS_STARTED: 'Processing your image.', + PROCESS_FINISHED: 'Image has been processed.' +} + +describe('BackgroundRemove Application', () => { it('As a User I should be able to visit application', function () { cy.visit(Cypress.env('CYPRESS_BASE_URL')) cy.percySnapshot() }) + + it('Should inform me when application is ready to use', function () { + cy.contains(messages.READY) + cy.percySnapshot() + }) + + it('As a User I should be able to select an image from my machine to remove Background', function () { + cy.get('#js-image-picker').attachFile('adult-1868750_1920.jpg') + + cy.contains(messages.PROCESS_STARTED) + cy.contains(messages.PROCESS_FINISHED) + cy.percySnapshot() + }) + + it('Should be able to pick suggested image from provided options', function () { + cy.get('.suggestions__option').eq(2).click() + + cy.contains(messages.PROCESS_FINISHED) + cy.percySnapshot() + }) + + it('Should be able to interact with advance options', function () { + cy.get('#internalResolution').should('not.be.visible') + cy.get('[aria-controls="advance-options"]').click() + cy.get('#internalResolution').should('be.visible') + cy.percySnapshot() + + cy.get('[aria-controls="advance-options"]').click() + cy.get('#internalResolution').should('not.be.visible') + cy.percySnapshot() + }) + + it('Should be able to specify background colour for processed image', function () { + cy.get('[aria-controls="advance-options"]').click() + cy.get('#backgroundColour').invoke('val', '#ff0000').trigger('change') + + cy.contains(messages.PROCESS_FINISHED) + cy.percySnapshot() + }) + + it('Should be able to download processed image', function () { + cy.get('#js-download-link').click() + cy.percySnapshot() + }) })