Skip to content

Commit

Permalink
fix: Error log test
Browse files Browse the repository at this point in the history
  • Loading branch information
dvdbak committed Feb 14, 2025
1 parent efab24e commit dffbd43
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tests/e2e/playwright/tests/SH_wallet_web.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -509,13 +509,14 @@ test.describe('SH Wallet checks', () => {
test('SH Wallet_rst_more_saveErrorLog', async ({ page }) => {
// Error log switch screen check
await openWalletSettings(page);
// Open Save error log menu
// Open Error log menu
await page.getByText('Error log').click();
await expect(page.getByRole('paragraph')).toContainText('This will help us to identify what causes the errors. Thank you for being a fellow Superhero!');
await page.locator('ion-content').filter({ hasText: 'This will help us to identify' }).locator('span').click();
await expect(page.getByRole('paragraph').first()).toContainText('Superhero Wallet is able of maintaining an error log file on your device, recording the last 1,000 errors encountered.');
await expect(page.locator('//div[@class="switch-button"]//div')).toHaveText('Keep error log');
await page.locator('//div[@class="switch-button"]//label//span').first().click();
await page.getByTestId('back-arrow').click();
await expect(page.locator('#app-wrapper')).toContainText('On');
await eyes.check('Save error log', Target.window().fully());
await eyes.check('Error log', Target.window().fully());
// Close menu
await page.getByTestId('btn-close').click();
});
Expand Down

0 comments on commit dffbd43

Please sign in to comment.