Initial commit
This commit is contained in:
62
.dist/electron-e2e/pageobjects/multiples.page.js
Normal file
62
.dist/electron-e2e/pageobjects/multiples.page.js
Normal file
@@ -0,0 +1,62 @@
|
||||
var __awaiter =
|
||||
(this && this.__awaiter) ||
|
||||
function (thisArg, _arguments, P, generator) {
|
||||
function adopt(value) {
|
||||
return value instanceof P
|
||||
? value
|
||||
: new P(function (resolve) {
|
||||
resolve(value);
|
||||
});
|
||||
}
|
||||
return new (P || (P = Promise))(function (resolve, reject) {
|
||||
function fulfilled(value) {
|
||||
try {
|
||||
step(generator.next(value));
|
||||
} catch (e) {
|
||||
reject(e);
|
||||
}
|
||||
}
|
||||
function rejected(value) {
|
||||
try {
|
||||
step(generator['throw'](value));
|
||||
} catch (e) {
|
||||
reject(e);
|
||||
}
|
||||
}
|
||||
function step(result) {
|
||||
result.done
|
||||
? resolve(result.value)
|
||||
: adopt(result.value).then(fulfilled, rejected);
|
||||
}
|
||||
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
||||
});
|
||||
};
|
||||
import AbstractPage from './page';
|
||||
class MultiplesPage extends AbstractPage {
|
||||
/**
|
||||
* Selectors using getter methods
|
||||
*/
|
||||
get root() {
|
||||
return $('#multiples');
|
||||
}
|
||||
get input() {
|
||||
return $('#input');
|
||||
}
|
||||
get results() {
|
||||
return $$('.results');
|
||||
}
|
||||
get buttonSubmit() {
|
||||
return $('button[type="submit"]');
|
||||
}
|
||||
/**
|
||||
* Wrapper method to interact with the page
|
||||
*/
|
||||
enterInput(number) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
yield this.input.setValue(number);
|
||||
yield this.buttonSubmit.click();
|
||||
});
|
||||
}
|
||||
}
|
||||
export default new MultiplesPage();
|
||||
//# sourceMappingURL=multiples.page.js.map
|
||||
1
.dist/electron-e2e/pageobjects/multiples.page.js.map
Normal file
1
.dist/electron-e2e/pageobjects/multiples.page.js.map
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"multiples.page.js","sourceRoot":"","sources":["../../../workspaces/electron-e2e/pageobjects/multiples.page.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,YAAY,MAAM,QAAQ,CAAC;AAElC,MAAM,aAAc,SAAQ,YAAY;IACvC;;OAEG;IACH,IAAW,IAAI;QACd,OAAO,CAAC,CAAC,YAAY,CAAC,CAAC;IACxB,CAAC;IAED,IAAW,KAAK;QACf,OAAO,CAAC,CAAC,QAAQ,CAAC,CAAC;IACpB,CAAC;IAED,IAAW,OAAO;QACjB,OAAO,EAAE,CAAC,UAAU,CAAC,CAAC;IACvB,CAAC;IAED,IAAW,YAAY;QACtB,OAAO,CAAC,CAAC,uBAAuB,CAAC,CAAC;IACnC,CAAC;IAED;;OAEG;IACU,UAAU,CAAC,MAAc;;YACrC,MAAM,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;YAClC,MAAM,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,CAAC;QACjC,CAAC;KAAA;CACD;AAED,eAAe,IAAI,aAAa,EAAE,CAAC"}
|
||||
6
.dist/electron-e2e/pageobjects/page.js
Normal file
6
.dist/electron-e2e/pageobjects/page.js
Normal file
@@ -0,0 +1,6 @@
|
||||
/**
|
||||
* Abstract page object containing all methods, selectors and functionality
|
||||
* that is shared across all page objects
|
||||
*/
|
||||
export default class AbstractPage {}
|
||||
//# sourceMappingURL=page.js.map
|
||||
1
.dist/electron-e2e/pageobjects/page.js.map
Normal file
1
.dist/electron-e2e/pageobjects/page.js.map
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"page.js","sourceRoot":"","sources":["../../../workspaces/electron-e2e/pageobjects/page.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,CAAC,OAAO,OAAgB,YAAY;CAEzC"}
|
||||
Reference in New Issue
Block a user