Skip to content
Snippets Groups Projects
Commit d9d607ff authored by Andrew Sliwinski's avatar Andrew Sliwinski
Browse files

Fix issues with string matching in integration tests

parent c035fd6a
No related branches found
No related tags found
No related merge requests found
...@@ -69,9 +69,9 @@ describe('costumes, sounds and variables', () => { ...@@ -69,9 +69,9 @@ describe('costumes, sounds and variables', () => {
await clickText('Add Costume'); await clickText('Add Costume');
const el = await findByXpath("//input[@placeholder='what are you looking for?']"); const el = await findByXpath("//input[@placeholder='what are you looking for?']");
await el.sendKeys('abb'); await el.sendKeys('abb');
await clickText('abby-a'); // Should close the modal, then click the costumes in the selector await clickText('Abby-a'); // Should close the modal, then click the costumes in the selector
await clickText('costume1', costumesTabScope); await clickText('costume1', costumesTabScope);
await clickText('abby-a', costumesTabScope); await clickText('Abby-a', costumesTabScope);
const logs = await getLogs(errorWhitelist); const logs = await getLogs(errorWhitelist);
await expect(logs).toEqual([]); await expect(logs).toEqual([]);
}); });
...@@ -90,8 +90,8 @@ describe('costumes, sounds and variables', () => { ...@@ -90,8 +90,8 @@ describe('costumes, sounds and variables', () => {
await clickText('Add Sound'); await clickText('Add Sound');
const el = await findByXpath("//input[@placeholder='what are you looking for?']"); const el = await findByXpath("//input[@placeholder='what are you looking for?']");
await el.sendKeys('chom'); await el.sendKeys('chom');
await clickText('chomp'); // Should close the modal, then click the sounds in the selector await clickText('Chomp'); // Should close the modal, then click the sounds in the selector
await clickText('chomp', soundsTabScope); await clickText('Chomp', soundsTabScope);
await clickXpath('//button[@title="Play"]'); await clickXpath('//button[@title="Play"]');
await clickText('Louder'); await clickText('Louder');
......
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