This is an automated email from the ASF dual-hosted git repository.

janpio pushed a commit to branch janpio-CB-13829
in repository https://gitbox.apache.org/repos/asf/cordova-windows.git

commit 5840c51d47041a74a49d879f81bdbb6c14354fcb
Author: Jan Piotrowski <[email protected]>
AuthorDate: Thu Jan 25 16:10:46 2018 +0100

    fix first failing test for new default `appx`
---
 spec/e2e/endtoend.spec.js | 19 ++++++++++++++++---
 1 file changed, 16 insertions(+), 3 deletions(-)

diff --git a/spec/e2e/endtoend.spec.js b/spec/e2e/endtoend.spec.js
index c3e3f96..4facaca 100644
--- a/spec/e2e/endtoend.spec.js
+++ b/spec/e2e/endtoend.spec.js
@@ -55,11 +55,24 @@ describe('Cordova create and build', function () {
         expect(fs.existsSync(projectFolder)).toBe(true);
     });
 
-    it('spec.2 should build project', function () {
+    it('spec.2a should build default (win10) project', function () {
         shell.exec(buildScriptPath + '', {silent: silent});
         var packages = shell.ls(appPackagesFolder);
-        expect(packages.filter(function (file) { return 
file.match(/.*Phone.*\.appx.*/); }).length).toBe(1);
-        expect(packages.filter(function (file) { return 
file.match(/.*Windows.*\.appx.*/); }).length).toBe(1);
+        var subDir = 'CordovaApp.Windows10_1.0.0.0_anycpu_debug_Test';
+        expect(packages.filter(function (file) { return file.match(subDir); 
}).length).toBe(1);
+        verifySubDirContainsFile(subDir, 
'CordovaApp.Windows10_1.0.0.0_anycpu_debug.appx');
+    });
+
+    it('spec.2b should build 8.1 win project', function () {
+        shell.exec(buildScriptPath + ' --appx=8.1-win', {silent: silent});
+        var packages = shell.ls(appPackagesFolder);
+        expect(packages.filter(function (file) { return 
file.match(/.*Windows.*\.appxupload/); }).length).toBe(1);
+    });
+
+    it('spec.2c should build 8.1 phone project', function () {
+        shell.exec(buildScriptPath + ' --appx=8.1-phone', {silent: silent});
+        var packages = shell.ls(appPackagesFolder);
+        expect(packages.filter(function (file) { return 
file.match(/.*Phone.*\.appxupload*/); }).length).toBe(1);
     });
 
     it('spec.3 should build project for particular CPU', function () {

-- 
To stop receiving notification emails like this one, please contact
[email protected].

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to