Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat:skip switching themes and check welcome screen #1131

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions tests/e2e.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ test.describe('Jumper full e2e flow', () => {
const buyETHButton = page
.frameLocator('iframe[title="Onramper widget"]')
.locator('button:has-text("Buy ETH")');
await closeWelcomeScreen(page);
// await closeWelcomeScreen(page);
await page.getByRole('tab', { name: 'Exchange' }).click();
await expect(
page.locator('[id="widget-header-\\:r0\\:"]').getByText('Exchange'),
Expand All @@ -31,7 +31,7 @@ test.describe('Jumper full e2e flow', () => {
).toBeVisible();
});

test('should handle welcome screen', async ({ page }) => {
test.skip('should handle welcome screen', async ({ page }) => {
const headerText = 'Find the best route';
await findTheBestRoute(page);
expect(headerText).toBe('Find the best route');
Expand All @@ -42,7 +42,7 @@ test.describe('Jumper full e2e flow', () => {
await expect(connectWalletButton).toBeVisible();
});

test('should show again welcome screen when clicking jumper logo', async ({
test.skip('should show again welcome screen when clicking jumper logo', async ({
page,
}) => {
const headerText = 'Find the best route';
Expand All @@ -56,17 +56,17 @@ test.describe('Jumper full e2e flow', () => {
test('should be able to open menu and click away to close it', async ({
page,
}) => {
await closeWelcomeScreen(page);
// await closeWelcomeScreen(page);
await openMainMenu(page);
await expect(page.getByRole('menu')).toBeVisible();
await expect(page.getByRole('menuitem')).toHaveCount(10);
await expect(page.getByRole('menuitem')).toHaveCount(9);
await page.locator('body').click();
await expect(page.getByRole('menu')).not.toBeVisible();
});

test('should be able to navigate to profile', async ({ page }) => {
let profileUrl = `${await page.url()}profile/`;
await closeWelcomeScreen(page);
// await closeWelcomeScreen(page);
await openMainMenu(page);
await expect(page.getByRole('menu')).toBeVisible();
await itemInMenu(page, 'Jumper Profile');
Expand All @@ -76,7 +76,7 @@ test.describe('Jumper full e2e flow', () => {

test('should be able to navigate to jumper learn', async ({ page }) => {
let learnUrl = `${await page.url()}learn/`;
await closeWelcomeScreen(page);
// await closeWelcomeScreen(page);
await openMainMenu(page);
await expect(page.getByRole('menu')).toBeVisible();
await itemInMenu(page, 'Jumper Learn');
Expand All @@ -87,7 +87,7 @@ test.describe('Jumper full e2e flow', () => {
});

test('should be able to navigate to lifi explorer', async ({ page }) => {
await closeWelcomeScreen(page);
// await closeWelcomeScreen(page);
await page.locator('#main-burger-menu-button').click();
await expect(page.getByRole('menu')).toBeVisible();
await itemInMenu(page, 'LI.FI Explorer');
Expand All @@ -99,7 +99,7 @@ test.describe('Jumper full e2e flow', () => {

test('should be able to navigate to X', async ({ page, context }) => {
let xUrl = 'https://x.com/JumperExchange';
await closeWelcomeScreen(page);
// await closeWelcomeScreen(page);
await page.locator('#main-burger-menu-button').click();
await expect(page.getByRole('menu')).toBeVisible();
await page.getByRole('link', { name: 'X', exact: true }).click();
Expand All @@ -108,7 +108,7 @@ test.describe('Jumper full e2e flow', () => {
});
test('should be able to navigate to Discord', async ({ page, context }) => {
let discordUrl = 'https://discord.com/invite/lifi';
await closeWelcomeScreen(page);
// await closeWelcomeScreen(page);
await page.locator('#main-burger-menu-button').click();
await expect(page.getByRole('menu')).toBeVisible();
await page.getByRole('link', { name: 'Discord' }).click();
Expand Down
2 changes: 1 addition & 1 deletion tests/themeManipulation.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { test, expect } from '@playwright/test';
import { closeWelcomeScreen } from './testData/commonFunctions';

test.describe('Switch between dark and light theme and check background color', () => {
test.describe.skip('Switch between dark and light theme and check background color', () => {
test.beforeEach(async ({ page }) => {
await page.goto('/');
});
Expand Down