Skip to content

Instantly share code, notes, and snippets.

@Xotabu4
Created February 25, 2021 20:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Xotabu4/668be297722f33295cfa33fef3d021ca to your computer and use it in GitHub Desktop.
Save Xotabu4/668be297722f33295cfa33fef3d021ca to your computer and use it in GitHub Desktop.
Hometask after 2 lesson
/**
- Try to implement as much tests as you can
- Do not overload tests with logic, be simple
- browser.pause() allowed
- copy/paste is allowed
- prefer css selectors
- don't forget about assertions
*/
// this test gives you 20 points
// http://93.126.97.71:10082/index.php?route=account/return/add
// Notice that datepicker is optional
describe("Product return", function() {
it("can be submited", function() {
throw new Error("NOT IMPLEMENTED");
});
});
// http://93.126.97.71:10082/index.php?route=account/voucher
// this test gives you 20 points
describe("Gift Certificate", function() {
it("can be purchased", function() {
throw new Error("NOT IMPLEMENTED");
});
});
// this test gives you 20 points
// http://93.126.97.71:10082/index.php?route=information/contact
describe("Contact us form", function() {
it("must send messages to shop administration", function() {
throw new Error("NOT IMPLEMENTED");
});
});
// Each implemented test gives you 20 points
describe("Items search", function() {
it("should show results in case multiple items matches", function() {
throw new Error("NOT IMPLEMENTED");
});
it("should redirect to 'no matching results' in case no items matched", function() {
throw new Error("NOT IMPLEMENTED");
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment