Skip to content

Commit

Permalink
style(e2e): fix new lint warnings
Browse files Browse the repository at this point in the history
Signed-off-by: Zacharias Fragkiadakis <zacfragkiadakis@gmail.com>
  • Loading branch information
QZera committed Nov 27, 2024
1 parent 4b828d6 commit e8b203b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/e2e/specs/onboarding.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ describe('Onboarding Flow', () => {
const extensions = await browser.executeWorkbench(
(vscode: typeof VsCode) => vscode.extensions.all,
)

expect(
extensions.some((extension) => extension.id === 'radicle-ide-plugins-team.radicle'),
).toBe(true)
Expand All @@ -26,13 +27,15 @@ describe('Onboarding Flow', () => {
it('shows the Radicle button in the Activity Bar', async () => {
const radicleViewControl = await workbench.getActivityBar().getViewControl('Radicle')
const title = await radicleViewControl?.getTitle()

expect(title).toBe('Radicle')
})

it('guides the user on how to rad-initialize their git repo', async () => {
await openRadicleViewContainer(workbench)

const welcomeText = await getFirstWelcomeViewText(workbench)

expect(welcomeText).toEqual([
/* eslint-disable max-len */
'The Git repository currently opened in your workspace is not yet initialized with Radicle.',
Expand All @@ -42,6 +45,7 @@ describe('Onboarding Flow', () => {
'To learn more read the Radicle User Guide.',
/* eslint-enable max-len */
])

expect(welcomeText.some((text) => text.includes('rad init'))).toBe(true)
})
})
Expand All @@ -64,6 +68,7 @@ describe('Onboarding Flow', () => {

it('hides the non rad-initialized guide', async () => {
const welcomeText = await getFirstWelcomeViewText(workbench)

expect(welcomeText.some((text) => text.includes('rad init'))).not.toBe(true)
})

Expand All @@ -78,13 +83,15 @@ describe('Onboarding Flow', () => {
const buttonTitles = await Promise.all(
buttons.map(async (button) => await button.getTitle()),
)

expect(
welcomeText.some((text) =>
/Use the buttons below to perform common interactions with the Radicle network./i.test(
text,
),
),
).toBe(true)

expect(buttonTitles).toEqual(['Sync', 'Fetch', 'Announce'])
})
})
Expand Down

0 comments on commit e8b203b

Please sign in to comment.