Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions test/e2e/snaps/test-snap-get-locale.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@ describe('Test Snap Get Locale', function () {
tag: 'button',
});

// look for the snap name
await driver.waitForSelector({
text: 'Localization Example Snap',
tag: 'p',
});

await driver.waitForSelector({ text: 'Install' });

await driver.clickElementSafe('[data-testid="snap-install-scroll"]');
Expand Down Expand Up @@ -115,6 +121,20 @@ describe('Test Snap Get Locale', function () {
// try to select dansk from the list
await driver.clickElement({ text: 'Dansk', tag: 'option' });

// click on the global action menu
await driver.waitForSelector(
'[data-testid="account-options-menu-button"]',
);
await driver.clickElement(
'[data-testid="account-options-menu-button"]',
);

// try to click on snaps
await driver.clickElement({ text: 'Snaps', tag: 'div' });

// check for localized snap title
await driver.waitForSelector({ text: 'Oversættelses Eksempel Snap' });

// switch back to test snaps tab
windowHandles = await driver.waitUntilXWindowHandles(2, 1000, 10000);
await driver.switchToWindowWithTitle('Test Snaps', windowHandles);
Expand Down