-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix broken FastBoot rendering of imgix provider
Caused by actually broken FastBoot, messing up with the `URL` global: ember-fastboot/ember-cli-fastboot#816
- Loading branch information
1 parent
d9b1a76
commit d4bbcd7
Showing
6 changed files
with
48 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<ResponsiveImage @src={{responsive-image-cloudinary-provider "samples/animals/three-dogs"}} data-test-image/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<ResponsiveImage @src={{responsive-image-imgix-provider "pages/approach/agile_2000x1200.jpg"}} data-test-image/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { module, test } from 'qunit'; | ||
import { | ||
setup, | ||
visit /* mockServer */, | ||
} from 'ember-cli-fastboot-testing/test-support'; | ||
|
||
module('FastBoot | Cloudinary', function (hooks) { | ||
setup(hooks); | ||
|
||
test('it renders an image', async function (assert) { | ||
await visit('/cloudinary'); | ||
|
||
assert.dom('img[data-test-image]').exists(); | ||
assert | ||
.dom('img[data-test-image]') | ||
.hasAttribute('src', new RegExp('https://res.cloudinary.com/kaliber5/')); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { module, test } from 'qunit'; | ||
import { | ||
setup, | ||
visit /* mockServer */, | ||
} from 'ember-cli-fastboot-testing/test-support'; | ||
|
||
module('FastBoot | Imgix', function (hooks) { | ||
setup(hooks); | ||
|
||
test('it renders an image', async function (assert) { | ||
await visit('/imgix'); | ||
|
||
assert.dom('img[data-test-image]').exists(); | ||
assert | ||
.dom('img[data-test-image]') | ||
.hasAttribute('src', new RegExp('https://kaliber5.imgix.net/')); | ||
}); | ||
}); |