Skip to content

Commit

Permalink
fix(2946): Fix e2e test button clicking by switching to test id
Browse files Browse the repository at this point in the history
  • Loading branch information
DDDDDanica committed Sep 9, 2024
1 parent c702c88 commit 8772afb
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions test/e2e/tests/settings/backup-restore.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,7 @@ describe('Backup and Restore', function () {
);
await driver.clickElement({ text: 'Settings', tag: 'div' });
await driver.clickElement({ text: 'Advanced', tag: 'div' });
await driver.clickElement({
text: 'Download',
tag: 'button',
});
await driver.clickElement('[data-testid="export-data-button"]');

// Verify download
let info;
Expand Down

0 comments on commit 8772afb

Please sign in to comment.