From 08213b4bd67d430b95aa988129440f7a2ecfd191 Mon Sep 17 00:00:00 2001 From: Guillaume Roux Date: Tue, 25 Apr 2023 12:45:40 +0200 Subject: [PATCH] fix tests --- ui/components/app/flask/snap-authorship/snap-authorship.js | 2 +- ui/pages/settings/flask/view-snap/view-snap.test.js | 7 +------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/ui/components/app/flask/snap-authorship/snap-authorship.js b/ui/components/app/flask/snap-authorship/snap-authorship.js index 9756df87bc0d..54a4bf93f229 100644 --- a/ui/components/app/flask/snap-authorship/snap-authorship.js +++ b/ui/components/app/flask/snap-authorship/snap-authorship.js @@ -172,7 +172,7 @@ const SnapAuthorship = ({ snapId, className, expanded = false, snap }) => { marginTop={4} > {t('version')} - + diff --git a/ui/pages/settings/flask/view-snap/view-snap.test.js b/ui/pages/settings/flask/view-snap/view-snap.test.js index 320077cf6f47..3ce293094abb 100644 --- a/ui/pages/settings/flask/view-snap/view-snap.test.js +++ b/ui/pages/settings/flask/view-snap/view-snap.test.js @@ -48,12 +48,7 @@ describe('ViewSnap', () => { // Snap version info expect(getByText('v5.1.2')).toBeDefined(); // Enable Snap - expect(getByText('Enable snap')).toBeDefined(); - expect( - getByText( - 'Your installed snap will only have access to its permissions and run if it’s enabled.', - ), - ).toBeDefined(); + expect(getByText('Enable')).toBeDefined(); expect(container.getElementsByClassName('toggle-button')?.length).toBe(1); // Permissions expect(getByText('Permissions')).toBeDefined();