-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
73 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -102,3 +102,4 @@ | |
>{command.symbol}</Emoji | ||
>{:else}{command.symbol}{/if}</Button | ||
> | ||
|
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,47 @@ | ||
import { test, expect, type Page } from '@playwright/test'; | ||
|
||
|
||
test('create project and check for command buttons and their functionalities ', async ({ page }) => { | ||
await page.goto('/projects'); | ||
|
||
// Create a new blank project | ||
await page.getByTestId('addproject').click(); | ||
|
||
// Click the first preview link | ||
await page.getByTestId('preview').nth(0).click(); | ||
|
||
// Wait for the URL redirect to the project. | ||
await page.waitForURL(/\/project\/.+/); | ||
|
||
|
||
|
||
const StepBackButton = await page.locator('[data-uiid="4"]'); | ||
await expect(StepBackButton).toBeVisible(); | ||
|
||
const StepForwardButton = await page.locator('[data-uiid="5"]'); | ||
await expect(StepForwardButton).toBeVisible(); | ||
|
||
const StepOut = await page.locator('[data-uiid="12"]'); | ||
await expect(StepOut).toBeVisible(); | ||
|
||
|
||
const BackOneInput = await page.locator('[data-uiid="6"]'); | ||
await expect(BackOneInput).toBeVisible(); | ||
|
||
|
||
const StepBackOne = await page.locator('[data-uiid="8"]'); | ||
await expect(StepBackOne).toBeVisible(); | ||
|
||
const ToEnd = await page.locator('[data-uiid="12"]'); | ||
await expect(ToEnd).toBeVisible(); | ||
|
||
|
||
const TimeLineSlider = await page.locator('[data-uiid="timeline"]'); | ||
await expect(TimeLineSlider).toBeVisible(); | ||
|
||
|
||
|
||
const PlayButton = await page.locator('[data-uiid="playToggle"]'); | ||
await expect(PlayButton).toBeVisible(); | ||
|
||
}); |