-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add tests for donate/request medicine and sanitary items
- Loading branch information
Showing
11 changed files
with
30,914 additions
and
150 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { Given } from 'cypress-cucumber-preprocessor/steps' | ||
|
||
Given(/^I click donate medicine button$/, function () { | ||
cy.findAllByText('Adaugă').eq(5).click() | ||
cy.wait(1000) | ||
}) | ||
|
||
Given(/^I fill the donate medicine form$/, function () { | ||
cy.get('#has_transportation_true').check() | ||
cy.selectMultiDropdown() | ||
cy.get('#town').type('Galati') | ||
cy.get('#name').type('Product name') | ||
cy.get('#description').type('Product description') | ||
cy.get('#quantity').type(100) | ||
cy.get('#unit_type').type('box') | ||
cy.get('#packaging_type').type('bax') | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { Given } from 'cypress-cucumber-preprocessor/steps' | ||
|
||
Given(/^I click donate sanitary item button$/, function () { | ||
cy.findAllByText('Adaugă').eq(6).click() | ||
cy.wait(1000) | ||
}) | ||
|
||
Given(/^I fill the donate sanitary item form$/, function () { | ||
cy.get('#has_transportation_true').check() | ||
cy.selectMultiDropdown() | ||
cy.get('#town').type('Galati') | ||
cy.get('#name').type('Product name') | ||
cy.get('#description').type('Product description') | ||
cy.get('#quantity').type(100) | ||
cy.get('#unit_type').type('box') | ||
cy.get('#packaging_type').type('bax') | ||
}) |
2 changes: 1 addition & 1 deletion
2
...s/integration/Donate/DonateItem/6_tent.js → ...s/integration/Donate/DonateItem/8_tent.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../integration/Donate/DonateItem/7_other.js → .../integration/Donate/DonateItem/9_other.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { Given } from 'cypress-cucumber-preprocessor/steps' | ||
|
||
Given(/^I click request medicine item button$/, function() { | ||
cy.findAllByText('Adaugă').eq(5).click() | ||
cy.wait(1000) | ||
}); | ||
|
||
Given(/^I fill the request medicine item form$/, function() { | ||
cy.get('#has_transportation_true').check() | ||
cy.get('select[name="county_coverage"]').select(1) | ||
cy.get('#town').type('Galati') | ||
cy.get('#name').type('Product name') | ||
cy.get('#description').type('Product description') | ||
cy.get('#quantity').type(100) | ||
cy.get('#unit_type').type('box') | ||
cy.get('#packaging_type').type('bax') | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { Given } from 'cypress-cucumber-preprocessor/steps' | ||
|
||
Given(/^I click request sanitary item button$/, function () { | ||
cy.findAllByText('Adaugă').eq(6).click() | ||
cy.wait(1000) | ||
}) | ||
|
||
Given(/^I fill the request sanitary item form$/, function () { | ||
cy.get('#has_transportation_true').check() | ||
cy.get('select[name="county_coverage"]').select(1) | ||
cy.get('#town').type('Galati') | ||
cy.get('#name').type('Product name') | ||
cy.get('#description').type('Product description') | ||
cy.get('#quantity').type(100) | ||
cy.get('#unit_type').type('box') | ||
cy.get('#packaging_type').type('bax') | ||
}) |
2 changes: 1 addition & 1 deletion
2
...ntegration/Request/RequestItem/6_tents.js → ...ntegration/Request/RequestItem/8_tents.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ntegration/Request/RequestItem/7_other.js → ...ntegration/Request/RequestItem/9_other.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.