Skip to content
Snippets Groups Projects
Commit 04fe42bd authored by Paul Kaplan's avatar Paul Kaplan
Browse files

Use path.resolve the same way the build is loaded

parent c6055710
No related branches found
No related tags found
No related merge requests found
......@@ -139,7 +139,7 @@ describe('Working with costumes', () => {
.perform();
await driver.sleep(500); // Wait for thermometer menu to come up
const input = await findByXpath('//input[@type="file"]');
await input.sendKeys(path.join(process.cwd(), 'test', 'integration', 'fixtures', '100-100.svg'));
await input.sendKeys(path.resolve(__dirname, '../fixtures/100-100.svg'));
await clickText('100-100', scope.costumesTab); // Name from filename
await clickText('100 x 100', scope.costumesTab); // Size is right
const logs = await getLogs();
......@@ -155,7 +155,7 @@ describe('Working with costumes', () => {
.perform();
await driver.sleep(500); // Wait for thermometer menu to come up
const input = await findByXpath('//input[@type="file"]');
await input.sendKeys(path.join(process.cwd(), 'test', 'integration', 'fixtures', 'gh-3582-png.png'));
await input.sendKeys(path.resolve(__dirname, '../fixtures/gh-3582-png.png'));
await clickText('gh-3582-png', scope.costumesTab);
const logs = await getLogs();
await expect(logs).toEqual([]);
......
......@@ -83,7 +83,7 @@ describe('Working with sprites', () => {
.perform();
await driver.sleep(500); // Wait for thermometer menu to come up
const input = await findByXpath('//input[@type="file"]');
await input.sendKeys(path.join(process.cwd(), 'test', 'fixtures', 'gh-3582-png.png'));
await input.sendKeys(path.resolve(__dirname, '../fixtures/gh-3582-png.png'));
await clickText('gh-3582-png', scope.spriteTile);
const logs = await getLogs();
await expect(logs).toEqual([]);
......@@ -99,7 +99,7 @@ describe('Working with sprites', () => {
.perform();
await driver.sleep(500); // Wait for thermometer menu to come up
const input = await findByXpath('//input[@type="file"]');
await input.sendKeys(path.join(process.cwd(), 'test', 'fixtures', '100-100.svg'));
await input.sendKeys(path.resolve(__dirname, '../fixtures/100-100.svg'));
await clickText('100-100', scope.spriteTile); // Sprite is named for costume filename
// Check to make sure the size is right
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment