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

Fix tests that relied on button text

parent 07a5afd7
No related branches found
No related tags found
No related merge requests found
......@@ -39,7 +39,7 @@ describe('Working with costumes', () => {
test('Adding a backdrop', async () => {
await loadUri(uri);
await clickXpath('//button[@title="tryit"]');
await clickText('Add Backdrop');
await clickXpath('//button[@title="Add Backdrop"]');
const el = await findByXpath("//input[@placeholder='what are you looking for?']");
await el.sendKeys('blue');
await clickText('Blue Sky'); // Should close the modal
......
......@@ -30,7 +30,7 @@ describe('Localization', () => {
await loadUri(uri);
await clickXpath('//button[@title="tryit"]');
await clickText('Blocks');
await clickText('Extensions');
await clickXpath('//button[@title="Add Extension"]');
await clickText('Pen', scope.modal); // Modal closes
await new Promise(resolve => setTimeout(resolve, 1000)); // Wait for scroll animation
await clickText('English');
......
......@@ -74,7 +74,7 @@ describe('Working with sounds', () => {
await clickText('A Bass'); // Closes the modal
// Now add a sprite with only one sound.
await clickText('Add Sprite');
await clickXpath('//button[@title="Add Sprite"]');
await clickText('Abby'); // Doing this used to crash the editor.
await new Promise(resolve => setTimeout(resolve, 1000)); // Wait for error
......
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