Skip to content
This repository was archived by the owner on Apr 18, 2024. It is now read-only.
Open
Prev Previous commit
Replace heavy image with more lightweight one
  • Loading branch information
hlomzik committed Mar 4, 2024
commit d13fa8a595cf27f38f71e7a54a8743a6f1f63d2b
2 changes: 1 addition & 1 deletion e2e/tests/history.test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Feature('Time traveling');

const IMAGE = 'https://htx-misc.s3.amazonaws.com/opensource/label-studio/examples/images/nick-owuor-astro-nic-visuals-wDifg5xc9Z4-unsplash.jpg';
const IMAGE = 'https://data.heartex.net/open-images/train_0/mini/0030019819f25b28.jpg';

Scenario('Travel through history with the selected brush region', async function({ I, LabelStudio, AtImageView, AtSidebar }) {
I.amOnPage('/');
Expand Down
3 changes: 1 addition & 2 deletions e2e/tests/image-labels.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ const { toKebabCase } = require('strman');

Feature('Images\' labels type matching');

const IMAGE =
'https://htx-misc.s3.amazonaws.com/opensource/label-studio/examples/images/nick-owuor-astro-nic-visuals-wDifg5xc9Z4-unsplash.jpg';
const IMAGE = 'https://data.heartex.net/open-images/train_0/mini/0030019819f25b28.jpg';

const createConfig = ({ shapes = ['Rectangle'], props } = {}) => {
return `<View>
Expand Down
3 changes: 1 addition & 2 deletions e2e/tests/image.gestures.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ const DEFAULT_DIMENSIONS = {

Feature('Creating regions with gesture');

const IMAGE =
'https://htx-misc.s3.amazonaws.com/opensource/label-studio/examples/images/nick-owuor-astro-nic-visuals-wDifg5xc9Z4-unsplash.jpg';
const IMAGE = 'https://data.heartex.net/open-images/train_0/mini/0030019819f25b28.jpg';

const BLUEVIOLET = {
color: '#8A2BE2',
Expand Down
3 changes: 1 addition & 2 deletions e2e/tests/image.shapes.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ const getConfigWithShape = (shape, props = '') => `
<${shape} ${props} name="tag" toName="img" />
</View>`;

const IMAGE =
'https://htx-misc.s3.amazonaws.com/opensource/label-studio/examples/images/nick-owuor-astro-nic-visuals-wDifg5xc9Z4-unsplash.jpg';
const IMAGE = 'https://data.heartex.net/open-images/train_0/mini/0030019819f25b28.jpg';

// precalculated image size on the screen; may change because of different reasons
const WIDTH = 706;
Expand Down
3 changes: 1 addition & 2 deletions e2e/tests/image.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@ const annotationWithPerRegion = {
result: [annotationMoonwalker.result[0], createRegion('answer', 'textarea', { text: ['blah'] })],
};

const image =
'https://htx-misc.s3.amazonaws.com/opensource/label-studio/examples/images/nick-owuor-astro-nic-visuals-wDifg5xc9Z4-unsplash.jpg';
const image = 'https://data.heartex.net/open-images/train_0/mini/0030019819f25b28.jpg';

Scenario('Check Rect region for Image', async function({ I, AtImageView, AtSidebar }) {
const params = {
Expand Down
3 changes: 1 addition & 2 deletions e2e/tests/image.zoom-rotate.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ const assert = require('assert');

Feature('Zooming and rotating');

const IMAGE =
'https://htx-misc.s3.amazonaws.com/opensource/label-studio/examples/images/nick-owuor-astro-nic-visuals-wDifg5xc9Z4-unsplash.jpg';
const IMAGE = 'https://data.heartex.net/open-images/train_0/mini/0030019819f25b28.jpg';

const BLUEVIOLET = {
color: '#8A2BE2',
Expand Down
3 changes: 1 addition & 2 deletions e2e/tests/outliner.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ const { centerOfBbox } = require('./helpers');

Feature('Outliner');

const IMAGE =
'https://htx-misc.s3.amazonaws.com/opensource/label-studio/examples/images/nick-owuor-astro-nic-visuals-wDifg5xc9Z4-unsplash.jpg';
const IMAGE = 'https://data.heartex.net/open-images/train_0/mini/0030019819f25b28.jpg';

Scenario('Basic details', async ({ I, LabelStudio, AtOutliner, AtDetails }) => {
const RESULT_LABELS = ['a', 'b', 'c'];
Expand Down
3 changes: 1 addition & 2 deletions e2e/tests/regression-tests/image-ctrl-drawing.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ const Asserts = require('../../utils/asserts');

Feature('Creating regions over other regions').tag('@regress');

const IMAGE =
'https://htx-misc.s3.amazonaws.com/opensource/label-studio/examples/images/nick-owuor-astro-nic-visuals-wDifg5xc9Z4-unsplash.jpg';
const IMAGE = 'https://data.heartex.net/open-images/train_0/mini/0030019819f25b28.jpg';

const BLUEVIOLET = {
color: '#8A2BE2',
Expand Down
3 changes: 1 addition & 2 deletions e2e/tests/regression-tests/image-draw-undo.test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
Feature('Undoing drawing in one step').tag('@regress');

const IMAGE =
'https://htx-misc.s3.amazonaws.com/opensource/label-studio/examples/images/nick-owuor-astro-nic-visuals-wDifg5xc9Z4-unsplash.jpg';
const IMAGE = 'https://data.heartex.net/open-images/train_0/mini/0030019819f25b28.jpg';

const BLUEVIOLET = {
color: '#8A2BE2',
Expand Down
2 changes: 1 addition & 1 deletion e2e/tests/regression-tests/image-zoom-position.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const Helpers = require('../helpers');

Feature('Image zoom position').tag('@regress');

const IMAGE = 'https://htx-misc.s3.amazonaws.com/opensource/label-studio/examples/images/nick-owuor-astro-nic-visuals-wDifg5xc9Z4-unsplash.jpg';
const IMAGE = 'https://data.heartex.net/open-images/train_0/mini/005eb6e2010fa7aa.jpg';

const config = `
<View>
Expand Down
2 changes: 1 addition & 1 deletion e2e/tests/regression-tests/image-zoom-transform.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const assert = require('assert');

Feature('Zoomed transforms').tag('@regress');

const IMAGE = 'https://htx-misc.s3.amazonaws.com/opensource/label-studio/examples/images/nick-owuor-astro-nic-visuals-wDifg5xc9Z4-unsplash.jpg';
const IMAGE = 'https://data.heartex.net/open-images/train_0/mini/0030019819f25b28.jpg';

const config = `
<View>
Expand Down
3 changes: 1 addition & 2 deletions e2e/tests/regression-tests/image.regions-select.test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
Feature('Select region by clicking on it');

const IMAGE =
'https://htx-misc.s3.amazonaws.com/opensource/label-studio/examples/images/nick-owuor-astro-nic-visuals-wDifg5xc9Z4-unsplash.jpg';
const IMAGE = 'https://data.heartex.net/open-images/train_0/mini/0030019819f25b28.jpg';

const BLUEVIOLET = {
color: '#8A2BE2',
Expand Down
3 changes: 1 addition & 2 deletions e2e/tests/regression-tests/multiple-same-named-tools.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ const config = `
`;

const data = {
image:
'https://htx-misc.s3.amazonaws.com/opensource/label-studio/examples/images/nick-owuor-astro-nic-visuals-wDifg5xc9Z4-unsplash.jpg',
image: 'https://data.heartex.net/open-images/train_0/mini/0030019819f25b28.jpg',
};

Feature('Two or more same named tools referred same image').tag('@regress');
Expand Down
2 changes: 1 addition & 1 deletion e2e/tests/regression-tests/zoomed-image-displaying.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const assert = require('assert');

Feature('Zoomed image displaying').tag('@regress');

const IMAGE = 'https://htx-misc.s3.amazonaws.com/opensource/label-studio/examples/images/nick-owuor-astro-nic-visuals-wDifg5xc9Z4-unsplash.jpg';
const IMAGE = 'https://data.heartex.net/open-images/train_0/mini/0030019819f25b28.jpg';
const config = `
<View>
<Image name="img" value="$image" zoomby="2"/>
Expand Down
3 changes: 1 addition & 2 deletions e2e/tests/toggle-visibility.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ const config = `
`;

const data = {
image:
'https://htx-misc.s3.amazonaws.com/opensource/label-studio/examples/images/nick-owuor-astro-nic-visuals-wDifg5xc9Z4-unsplash.jpg',
image: 'https://data.heartex.net/open-images/train_0/mini/0030019819f25b28.jpg',
};

const createRegion = (from_name, type, values) => ({
Expand Down
3 changes: 1 addition & 2 deletions e2e/tests/unfinished-polygons.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ const assert = require('assert');

Feature('Unfinished polygons');

const IMAGE =
'https://htx-misc.s3.amazonaws.com/opensource/label-studio/examples/images/nick-owuor-astro-nic-visuals-wDifg5xc9Z4-unsplash.jpg';
const IMAGE = 'https://data.heartex.net/open-images/train_0/mini/0030019819f25b28.jpg';

const CONFIG = `
<View>
Expand Down