Skip to content

Commit

Permalink
bad rebase e2e flows
Browse files Browse the repository at this point in the history
  • Loading branch information
estebanmino committed Oct 24, 2023
1 parent 05dbeb0 commit ca631ea
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 9 deletions.
2 changes: 1 addition & 1 deletion e2e/parallel/settingsPrivacyFlows.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ describe('Navigate Settings & Privacy and its flows', () => {
await findElementByTestIdAndClick({ id: 'account-name', driver });
const numOfWallets = await getNumberOfWallets(driver, 'wallet-account-');
await findElementByTestIdAndClick({ id: 'more-info-1', driver });
await findElementByTextAndClick(driver, 'Hide wallet');
await findElementByTextAndClick(driver, 'Hide Wallet');
await findElementByTestIdAndClick({ id: 'remove-button', driver });
const numOfWalletsAfterHide = await getNumberOfWallets(
driver,
Expand Down
26 changes: 20 additions & 6 deletions e2e/parallel/shortcuts-home.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,26 +144,40 @@ describe.runIf(browser !== 'firefox')(

it('should be able to use arrows to tab switch', async () => {
await findElementByText(driver, 'Tokens');
await executePerformShortcut({ driver, key: 'ARROW_LEFT' });
await findElementByText(driver, 'Activity');
await executePerformShortcut({ driver, key: 'ARROW_RIGHT' });
await findElementByText(driver, 'Activity');
await executePerformShortcut({ driver, key: 'ARROW_LEFT' });
await findElementByText(driver, 'Tokens');
const activity = await isElementFoundByText({
text: 'Activity',
driver,
});
await executePerformShortcut({ driver, key: 'ARROW_RIGHT' });
await executePerformShortcut({
driver,
key: 'ARROW_RIGHT',
timesToPress: 2,
});
await findElementByText(driver, 'NFTs');
const tokens = await isElementFoundByText({
text: 'Tokens',
driver,
});
await executePerformShortcut({ driver, key: 'ARROW_LEFT' });
await executePerformShortcut({ driver, key: 'ARROW_RIGHT' });
await findElementByText(driver, 'Points');
const nfts = await isElementFoundByText({
text: 'NFTs',
driver,
});
expect(activity && tokens && nfts).toBe(false);
await executePerformShortcut({
driver,
key: 'ARROW_LEFT',
timesToPress: 3,
});
const points = await isElementFoundByText({
text: 'Points',
driver,
});
expect(activity && tokens && nfts && points).toBe(false);
});

it('should be able to navigate to highlight asset + open context menu with keyboard', async () => {
Expand Down Expand Up @@ -206,7 +220,7 @@ describe.runIf(browser !== 'firefox')(
});

it('should be able to navigate to highlight transaction + open context menu with keyboard', async () => {
await executePerformShortcut({ driver, key: 'ARROW_LEFT' });
await executePerformShortcut({ driver, key: 'ARROW_RIGHT' });
await findElementByText(driver, 'Activity');
await executePerformShortcut({
driver,
Expand Down
4 changes: 2 additions & 2 deletions e2e/parallel/shortcuts-walletSwitcher.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,10 +150,10 @@ describe.runIf(browser !== 'firefox')(
await executePerformShortcut({ driver, key: 'w' });
await executePerformShortcut({ driver, key: 'TAB', timesToPress: 3 });
await executePerformShortcut({ driver, key: 'SPACE' });
await findElementByText(driver, 'Rename wallet');
await findElementByText(driver, 'Rename Wallet');
await executePerformShortcut({ driver, key: 'ESCAPE' });
const renameWallet = await isElementFoundByText({
text: 'Rename wallet',
text: 'Rename Wallet',
driver,
});
expect(renameWallet).toBe(false);
Expand Down

0 comments on commit ca631ea

Please sign in to comment.