{"action":"created","issue":{"url":"https://api.github.com/repos/angular/protractor/issues/2471","labels_url":"https://api.github.com/repos/angular/protractor/issues/2471/labels{/name}","comments_url":"https://api.github.com/repos/angular/protractor/issues/2471/comments","events_url":"https://api.github.com/repos/angular/protractor/issues/2471/events","html_url":"https://github.com/angular/protractor/issues/2471","id":104715016,"number":2471,"title":"Protractor not able to read geojson","user":{"login":"mathilde-pellerin","id":3293937,"avatar_url":"https://avatars.githubusercontent.com/u/3293937?v=3","gravatar_id":"","url":"https://api.github.com/users/mathilde-pellerin","html_url":"https://github.com/mathilde-pellerin","followers_url":"https://api.github.com/users/mathilde-pellerin/followers","following_url":"https://api.github.com/users/mathilde-pellerin/following{/other_user}","gists_url":"https://api.github.com/users/mathilde-pellerin/gists{/gist_id}","starred_url":"https://api.github.com/users/mathilde-pellerin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mathilde-pellerin/subscriptions","organizations_url":"https://api.github.com/users/mathilde-pellerin/orgs","repos_url":"https://api.github.com/users/mathilde-pellerin/repos","events_url":"https://api.github.com/users/mathilde-pellerin/events{/privacy}","received_events_url":"https://api.github.com/users/mathilde-pellerin/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/angular/protractor/labels/needs:%20more%20info","name":"needs: more info","color":"bfd4f2"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-03T14:57:32Z","updated_at":"2015-09-30T21:42:12Z","closed_at":"2015-09-30T21:42:12Z","body":"Hi all,\r\n\r\nFor my e2e test, I have to load geojson file, which are just json files with a particular structure (http://geojson.org/).\r\n\r\nIt works well when I use .json extension:\r\n```var dataToSend = require('../resources/Cheminee.json');```\r\n\r\nbut not when I use .geojson extension:\r\n```var dataToSend = require('../resources/Cheminee.geojson');```\r\n>   1) UF2 step 2 should add data from Cheminee.geojson file\r\n   Message:\r\n     Error: Cannot find module '../resources/Cheminee.geojson'\r\n   Stacktrace:\r\n     Error: Cannot find module '../resources/Cheminee.geojson'\r\n    at require (module.js:384:17)\r\n    at [object Object].<anonymous> (c:\\Users\\guest875\\Documents\\work\\projets\\ValorX\\workspace_frontend\\valorX-common\\test\\e2e\\ctc\\ctc_UF2.spec.js:22:20)\r\n    at c:\\Users\\guest875\\Documents\\work\\projets\\ValorX\\workspace_frontend\\valorX-common\\node_modules\\protractor\\node_modules\\jasminewd\\index.js:94:14\r\n    at [object Object].promise.ControlFlow.runInFrame_ (c:\\Users\\guest875\\Documents\\work\\projets\\ValorX\\workspace_frontend\\valorX-common\\node_modules\\protractor\\node_modules\\selenium-webdriver\\lib\\webdriver\\promise.js:1877:20)\r\n    at [object Object].promise.ControlFlow.runEventLoop_ (c:\\Users\\guest875\\Documents\\work\\projets\\ValorX\\workspace_frontend\\valorX-common\\node_modules\\protractor\\node_modules\\selenium-webdriver\\lib\\webdriver\\promise.js:1755:8)\r\n    at [object Object].<anonymous> (c:\\Users\\guest875\\Documents\\work\\projets\\ValorX\\workspace_frontend\\valorX-common\\node_modules\\protractor\\node_modules\\selenium-webdriver\\lib\\webdriver\\promise.js:2056:12)\r\n    at goog.async.run.processWorkQueue (c:\\Users\\guest875\\Documents\\work\\projets\\ValorX\\workspace_frontend\\valorX-common\\node_modules\\protractor\\node_modules\\selenium-webdriver\\lib\\goog\\async\\run.js:125:21)\r\nFrom: Task: Asynchronous test function: it()\r\n    at [object Object].<anonymous> (c:\\Users\\guest875\\Documents\\work\\projets\\ValorX\\workspace_frontend\\valorX-common\\node_modules\\protractor\\node_modules\\jasminewd\\index.js:93:33)\r\n    at [object Object].<anonymous> (c:\\Users\\guest875\\Documents\\work\\projets\\ValorX\\workspace_frontend\\valorX-common\\node_modules\\protractor\\node_modules\\minijasminenode\\lib\\async-callback.js:45:37)\r\n    at [object Object].jasmine.Block.execute (c:\\Users\\guest875\\Documents\\work\\projets\\ValorX\\workspace_frontend\\valorX-common\\node_modules\\protractor\\node_modules\\minijasminenode\\lib\\jasmine-1.3.1.js:1174:17)\r\n    at [object Object].jasmine.Queue.next_ (c:\\Users\\guest875\\Documents\\work\\projets\\ValorX\\workspace_frontend\\valorX-common\\node_modules\\protractor\\node_modules\\minijasminenode\\lib\\jasmine-1.3.1.js:2209:31)\r\n    at [object Object]._onTimeout (c:\\Users\\guest875\\Documents\\work\\projets\\ValorX\\workspace_frontend\\valorX-common\\node_modules\\protractor\\node_modules\\minijasminenode\\lib\\jasmine-1.3.1.js:2199:18)\r\nError\r\n    at [object Object].<anonymous> (c:\\Users\\guest875\\Documents\\work\\projets\\ValorX\\workspace_frontend\\valorX-common\\test\\e2e\\ctc\\ctc_UF2.spec.js:21:2)\r\n    at [object Object].jasmine.Env.describe_ (c:\\Users\\guest875\\Documents\\work\\projets\\ValorX\\workspace_frontend\\valorX-common\\node_modules\\protractor\\node_modules\\minijasminenode\\lib\\jasmine-1.3.1.js:913:21)\r\n    at [object Object].jasmine.Env.describe (c:\\Users\\guest875\\Documents\\work\\projets\\ValorX\\workspace_frontend\\valorX-common\\node_modules\\protractor\\node_modules\\minijasminenode\\lib\\jasmine-1.3.1.js:898:15)\r\n    at describe (c:\\Users\\guest875\\Documents\\work\\projets\\ValorX\\workspace_frontend\\valorX-common\\node_modules\\protractor\\node_modules\\minijasminenode\\lib\\jasmine-1.3.1.js:658:27)\r\n    at Object.<anonymous> (c:\\Users\\guest875\\Documents\\work\\projets\\ValorX\\workspace_frontend\\valorX-common\\test\\e2e\\ctc\\ctc_UF2.spec.js:8:1)\r\n\r\nIt's odd because file is exactly the same, just extension changed.\r\nDo you think that geojson support could be added to protractor ?"},"comment":{"url":"https://api.github.com/repos/angular/protractor/issues/comments/144550643","html_url":"https://github.com/angular/protractor/issues/2471#issuecomment-144550643","issue_url":"https://api.github.com/repos/angular/protractor/issues/2471","id":144550643,"user":{"login":"juliemr","id":2081709,"avatar_url":"https://avatars.githubusercontent.com/u/2081709?v=3","gravatar_id":"","url":"https://api.github.com/users/juliemr","html_url":"https://github.com/juliemr","followers_url":"https://api.github.com/users/juliemr/followers","following_url":"https://api.github.com/users/juliemr/following{/other_user}","gists_url":"https://api.github.com/users/juliemr/gists{/gist_id}","starred_url":"https://api.github.com/users/juliemr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juliemr/subscriptions","organizations_url":"https://api.github.com/users/juliemr/orgs","repos_url":"https://api.github.com/users/juliemr/repos","events_url":"https://api.github.com/users/juliemr/events{/privacy}","received_events_url":"https://api.github.com/users/juliemr/received_events","type":"User","site_admin":false},"created_at":"2015-09-30T21:42:12Z","updated_at":"2015-09-30T21:42:12Z","body":"Closing stale issues. Please open a new issue if you feel there is still a general bug."}}