forked from activist-org/activist
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor and enhance dropdown functionality and tests
1. Dropdown Components: - Add class to DropdownBase.vue. - Add class to DropdownLanguage.vue. 2. Component Objects: - BaseComponent.ts: Import and use utility function. - HeaderWebsite.ts: - Add locators for HAMBURGER, SIDEBAR, SELECTED_LANGUAGE, LANGUAGE_MENU, and LANGUAGE_OPTIONS. - Implement methods: , , , , , , . 3. Page Objects: - BasePage.ts: - Import and use utility function. - Add method. 4. Test Specifications: - landing-page.spec.ts: - Remove console log from the title test. - Refactor theme and language dropdown tests to enhance functionality and readability. 5. Utility Functions: - Create with function.
- Loading branch information
1 parent
9f03561
commit 70964e7
Showing
7 changed files
with
116 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import type { Page } from "@playwright/test"; | ||
|
||
export async function isMobile(page: Page): Promise<boolean> { | ||
const viewportSize = page.viewportSize(); | ||
return viewportSize !== null && viewportSize.width < 768; | ||
} |