Skip to content

Commit

Permalink
Fix some legacy URLs I missed in the Github Pages migration
Browse files Browse the repository at this point in the history
  • Loading branch information
watsonbox committed Nov 5, 2020
1 parent 9ba210b commit 116a52e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[![Build Status](https://api.travis-ci.org/watsonbox/exportify.svg?branch=master)](https://travis-ci.org/watsonbox/exportify)

<a href="https://rawgit.com/watsonbox/exportify/master/exportify.html"><img src="screenshot.png"/></a>
<a href="https://watsonbox.github.io/exportify/"><img src="screenshot.png"/></a>

Export your Spotify playlists using the Web API by clicking on the link below:

Expand Down Expand Up @@ -55,7 +55,7 @@ python -m http.server 8000
```


Then open [http://localhost:8000/exportify.html](http://localhost:8000/exportify.html).
Then open [http://localhost:8000/](http://localhost:8000/).


## Notes
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@
<div class="ribbon"><a href="https://github.com/watsonbox/exportify">Fork me on Github</a></div>
<div class="container">
<div id="header">
<h1><i class="fa fa-spotify" style="color: #84BD00"></i> <a href="exportify.html">Exportify</a></h1>
<h1><i class="fa fa-spotify" style="color: #84BD00"></i> <a href="/">Exportify</a></h1>
<p id="subtitle" class="lead">Export your Spotify playlists.</p>

<button id="loginButton" type="submit" class="btn btn-default btn-lg" onclick="window.Helpers.authorize()">
Expand Down
10 changes: 5 additions & 5 deletions test/integration/exportify_tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ casper.on("page.error", function(msg, trace) {
});

casper.test.begin("Testing initial authentication redirect", 2, function(test) {
casper.start('http://localhost:8080/exportify.html');
casper.start('http://localhost:8080/');

casper.waitUntilVisible('#loginButton', function() {
test.assertTitle("Exportify", "Exportify main page is loaded");
Expand All @@ -46,7 +46,7 @@ casper.test.begin("Testing initial authentication redirect", 2, function(test) {
"https://accounts.spotify.com/authorize?" +
"scope=playlist-read-private+playlist-read-collaborative+user-library-read&" +
"response_type=token&" +
"redirect_uri=http%3A%2F%2Flocalhost%3A8080%2Fexportify.html&" +
"redirect_uri=http%3A%2F%2Flocalhost%3A8080%2F&" +
"client_id=9950ac751e34487dbbe027c4fd7f8e99"
),
"https://accounts.spotify.com/login?" +
Expand All @@ -60,7 +60,7 @@ casper.test.begin("Testing initial authentication redirect", 2, function(test) {
});

casper.test.begin("Testing initial authentication redirect with different client id", 2, function(test) {
casper.start('http://localhost:8080/exportify.html?app_client_id=123456');
casper.start('http://localhost:8080/?app_client_id=123456');

casper.waitUntilVisible('#loginButton', function() {
test.assertTitle("Exportify", "Exportify main page is loaded");
Expand All @@ -75,7 +75,7 @@ casper.test.begin("Testing initial authentication redirect with different client
"https://accounts.spotify.com/authorize?" +
"scope=playlist-read-private+playlist-read-collaborative+user-library-read&" +
"response_type=token&" +
"redirect_uri=http%3A%2F%2Flocalhost%3A8080%2Fexportify.html&" +
"redirect_uri=http%3A%2F%2Flocalhost%3A8080%2F&" +
"client_id=123456"
),
"Redirected to Spotify authentication page"
Expand All @@ -90,7 +90,7 @@ casper.test.begin("Testing initial authentication redirect with different client
casper.test.begin("Testing loading and displaying playlists", 15, function(test) {
casper.viewport(1000, 1000);

casper.start('http://localhost:8080/exportify.html#access_token=TOKEN', function() {
casper.start('http://localhost:8080/#access_token=TOKEN', function() {
this.evaluate(function() {
$.mockjaxSettings.throwUnmocked = true;

Expand Down

0 comments on commit 116a52e

Please sign in to comment.