fix: smoke e2e tests

Signed-off-by: edvardsanta <eduardosantamarco123@outlook.com>
This commit is contained in:
edvardsanta 2023-10-26 11:34:15 -03:00 committed by Tim deBoer
parent 7dbbf90381
commit 582c227117
3 changed files with 6 additions and 6 deletions

View file

@ -28,8 +28,8 @@ export class ContainersPage extends MainPage {
constructor(page: Page) {
super(page, 'containers');
this.pruneContainersButton = this.additionalActions.getByRole('button', { name: 'Prune containers' });
this.createContainerButton = this.additionalActions.getByRole('button', { name: 'Create a container' });
this.pruneContainersButton = this.additionalActions.getByRole('button', { name: 'Prune' });
this.createContainerButton = this.additionalActions.getByRole('button', { name: 'Create' });
this.playKubernetesYAMLButton = this.additionalActions.getByRole('button', { name: 'Play Kubernetes YAML' });
}

View file

@ -29,9 +29,9 @@ export class ImagesPage extends MainPage {
constructor(page: Page) {
super(page, 'images');
this.pullImageButton = this.additionalActions.getByRole('button', { name: 'Pull an image' });
this.pruneImagesButton = this.additionalActions.getByRole('button', { name: 'Prune images' });
this.buildImageButton = this.additionalActions.getByRole('button', { name: 'Build an image' });
this.pullImageButton = this.additionalActions.getByRole('button', { name: 'Pull' });
this.pruneImagesButton = this.additionalActions.getByRole('button', { name: 'Prune' });
this.buildImageButton = this.additionalActions.getByRole('button', { name: 'Build' });
}
async openPullImage(): Promise<PullImagePage> {

View file

@ -31,7 +31,7 @@ export class PullImagePage extends BasePage {
constructor(page: Page) {
super(page);
this.heading = page.getByRole('heading', { name: 'Pull Image From a Registry' });
this.pullImageButton = page.getByRole('button', { name: 'Pull image' });
this.pullImageButton = page.getByRole('button', { name: 'Pull' });
this.closeLink = page.getByRole('link', { name: 'Close' });
this.backToImagesLink = page.getByRole('link', { name: 'Go back to Images' });
this.manageRegistriesButton = page.getByRole('button', { name: 'Manage registries' });