Skip to content

Commit

Permalink
chore: Fix to get navbar on ios
Browse files Browse the repository at this point in the history
  • Loading branch information
eriklimakc committed Oct 4, 2024
1 parent 8c1ad2f commit f65b208
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
5 changes: 3 additions & 2 deletions build/ci/.azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,9 @@ stages:
# Don't trigger this stage if only docs files are changed
condition: ne(dependencies.Determine_Changes.outputs['evaluate_changes.DetermineChanges.docsOnly'], 'true')
jobs:
- template: stage-build-uitests-wasm.yml
- template: stage-build-uitests-android.yml
# Temporary disabled to make build faster
#- template: stage-build-uitests-wasm.yml
#- template: stage-build-uitests-android.yml
- template: stage-build-uitests-ios.yml
# Disabled waiting on uno fix: https://github.com/unoplatform/uno/pull/17668
# - template: stage-build-runtimetests-skia.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,16 @@ public async Task When_Commerce_Responsive()
PlatformHelpers.On(
iOS: () =>
{
var title = App.CreateQuery(x => x.WithClass("navigationBar").Descendant("label")).FirstResult();
var title = App.CreateQuery(x => x.WithClass("navigationBar").Descendant("label"))
.Results()
.Where(nav => nav.Text == "Deals")
.FirstOrDefault();
Assert.IsNotNull(title);
Assert.AreEqual("Deals", title.Text);
},
Android: async () => App.WaitElement("DealsNavigationBar"),
Browser: async () => App.WaitElement("DealsNavigationBar")
Android: () => App.WaitElement("DealsNavigationBar"),
Browser: () => App.WaitElement("DealsNavigationBar")
);

// Select a product
Expand Down

0 comments on commit f65b208

Please sign in to comment.