Skip to content

Commit

Permalink
test: fix playwright select interactive item
Browse files Browse the repository at this point in the history
  • Loading branch information
kyranjamie committed Mar 4, 2024
1 parent 758d65d commit fb7733b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const SwitchAccountList = memo(
style={{ paddingTop: '24px', height: '70vh' }}
totalCount={addressesNum}
itemContent={index => (
<Box key={index} mx="space.05">
<Box key={index} m="space.05">
<SwitchAccountListItem
handleClose={handleClose}
currentAccountIndex={currentAccountIndex}
Expand Down
1 change: 0 additions & 1 deletion src/app/ui/components/item/item-interactive.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ const basePseudoOutlineProps = {
left: '-space.03',
bottom: '-space.03',
right: '-space.03',
pointerEvents: 'none',
};

const focusVisibleStyles = {
Expand Down
3 changes: 1 addition & 2 deletions tests/specs/profile/profile.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ test.describe('Profile updating', () => {
testAppPage = await TestAppPage.openDemoPage(context);
await testAppPage.signIn();
const accountsPage = await context.waitForEvent('page');
await accountsPage.locator('text="Account 1"').click();
await accountsPage.locator('text="Account 1"').click({ force: true });
await testAppPage.page.bringToFront();
await testAppPage.page.click('text=Profile');
await accountsPage.close();
Expand All @@ -25,7 +25,6 @@ test.describe('Profile updating', () => {
const profileUpdatingPage = new UpdateProfileRequestPage(await context.waitForEvent('page'));
const name = profileUpdatingPage.page.getByText('twitter');
const nameText = await name.innerText();

test.expect(nameText).toBe('https://twitter.com/twitterHandle');
});

Expand Down

0 comments on commit fb7733b

Please sign in to comment.