Skip to content

Commit

Permalink
fix(tests): functional test clone form locators to match new reality (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
spinnakerbot authored and maggieneterval committed Jul 11, 2019
1 parent 4787689 commit 1043977
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions test/functional/tests/google/pages/CloneModalPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,14 @@ import { Page } from '../../core/pages/Page';

export class CloneModalPage extends Page {
public static locators = {
imageSelect: `//a[contains(@placeholder, 'Search for an image')]`,
imageInput: `//*[contains(@ng-model, 'command.image')]//*[contains(@class, 'search-container')]/input`,
imageSelect: `(//gce-image-select//*[contains(@class, 'Select')])`,
imageInput: `(//gce-image-select//input)`,
customInstanceCoresSelectArrow: `(//gce-custom-instance-configurer//*[@class = 'Select-arrow'])[1]`,
customInstanceMemorySelectArrow: `(//gce-custom-instance-configurer//*[@class = 'Select-arrow'])[2]`,
customInstanceDropdownListItems: `(//gce-custom-instance-configurer//*[contains(@class, 'Select-option')])`,

factories: {
machineImageFromName: (name: string) =>
`//*[contains(@class, 'select2-result-label')]//*[contains(text(), '${name}')]`,
machineImageFromName: (name: string) => `//gce-image-select//*[contains(text(), '${name}')]`,
machineTypeFromLabel: (label: string) =>
`//*[contains(@class, 'instance-profile') and descendant::text()[contains(., '${label}')]]`,
},
Expand Down

0 comments on commit 1043977

Please sign in to comment.