Restore the native file menu tests (#6279)
* Restore the native file menu tests * fix: saving off progress * chore: making progress cleaning up these verbose tests and improving app logic for e2e * chore: rewriting tests * fix: reworking application logic for file menu in the scene and e2e scene file menu test * chore: updating more e2e tests * fix: updated all the tests, auto fixers * fix: trying to improve tests within E2E, they aren't failing locally even with --repeat-each=10 * fix: application logic has a bug that you can navigate instantly but the scroll to view code will not trigger which breaks end to end tests * fix: improving E2E tests * fix: fixing clipboard typo * fix: porting test() for each native file menu to a test.step to speed it up * fix: auto fixes and console log helper function for playwright runtimes * fix: more cleanup * fix: trying to fix these... * fix: got the tests working * fix: addressing PR comments * fix: trying to stablize the tests * fix: auto fixes * fix: trying to make it the command name and not arg? could be a source of race condition if the input is not written fast enough? * fix: maybe because this close locator was running too quickly? * fix: panic timeout, classic * fix: these are gone * fix: shorter waits --------- Co-authored-by: Kevin Nadro <kevin@zoo.dev> Co-authored-by: Kevin Nadro <nadr0@users.noreply.github.com> Co-authored-by: Pierre Jacquier <pierrejacquier39@gmail.com>
This commit is contained in:
@ -24,6 +24,7 @@ export class HomePageFixture {
|
||||
projectTextName!: Locator
|
||||
sortByDateBtn!: Locator
|
||||
sortByNameBtn!: Locator
|
||||
appHeader!: Locator
|
||||
tutorialBtn!: Locator
|
||||
|
||||
constructor(page: Page) {
|
||||
@ -44,6 +45,7 @@ export class HomePageFixture {
|
||||
|
||||
this.sortByDateBtn = this.page.getByTestId('home-sort-by-modified')
|
||||
this.sortByNameBtn = this.page.getByTestId('home-sort-by-name')
|
||||
this.appHeader = this.page.getByTestId('app-header')
|
||||
this.tutorialBtn = this.page.getByTestId('home-tutorial-button')
|
||||
}
|
||||
|
||||
@ -125,4 +127,11 @@ export class HomePageFixture {
|
||||
|
||||
await this.createAndGoToProject(name)
|
||||
}
|
||||
|
||||
isNativeFileMenuCreated = async () => {
|
||||
await expect(this.appHeader).toHaveAttribute(
|
||||
'data-native-file-menu',
|
||||
'true'
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user