File tree Expand file tree Collapse file tree 4 files changed +12
-7
lines changed
components/ui/notifications Expand file tree Collapse file tree 4 files changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -193,11 +193,11 @@ protected ElementCache newElementCache()
193193
194194 protected class ElementCache extends Component <?>.ElementCache
195195 {
196- private final WebElement status = Locator .tagWithClass ( "i" , "fa" ).refindWhenNeeded (this );
196+ private final WebElement status = Locator .byClass ( "fa" ).refindWhenNeeded (this );
197197 private final WebElement message = Locator .tagWithClass ("span" , "server-notification-message" ).refindWhenNeeded (this );
198198 private final WebElement date = Locator .tagWithClass ("div" , "server-notification-data" ).refindWhenNeeded (this );
199199 private final WebElement userName = Locator .tagWithClass ("span" , "server-notification-data" ).refindWhenNeeded (this );
200- private final WebElement link = Locator .tagWithClass ( "span" , "server-notifications-link" ). childTag ("a" ).refindWhenNeeded (this );
200+ private final WebElement link = Locator .tag ("a" ).refindWhenNeeded (this );
201201 }
202202
203203
Original file line number Diff line number Diff line change @@ -274,11 +274,11 @@ public final WebElement noNotificationsElement()
274274 public final WebElement markAll ()
275275 {
276276 return Locator .tagWithClass ("h3" , "navbar-menu-header" )
277- .child (Locator .tagWithClass ( "div" , "server-notifications-link " ))
277+ .child (Locator .byClass ( "clickable-text " ))
278278 .refindWhenNeeded (elementCache ().menuContent );
279279 }
280280
281- public final WebElement viewAllLink = Locator .tagWithText ( "div" , "View all activity" ).refindWhenNeeded (this );
281+ public final WebElement viewAllLink = Locator .linkContainingText ( "View all activity" ).refindWhenNeeded (this );
282282
283283 }
284284
Original file line number Diff line number Diff line change @@ -895,7 +895,7 @@ public void testCoreLinkedSchemaFilters()
895895 .isGreaterThan (-1 ));
896896
897897 // clean up after ourselves
898- _schemaHelper .deleteSchema (sourceContainerPath , A_PEOPLE_SCHEMA_NAME );
898+ _schemaHelper .deleteSchema (sourceContainerPath , linkedSchemaName );
899899 }
900900
901901 /*
Original file line number Diff line number Diff line change @@ -186,10 +186,15 @@ public void testShortUrlPermissions()
186186 log ("As app admin, update shortUrl created by another user" );
187187 adminPage .submitShortUrl (shortUrl_a , targetUrl2 );
188188
189- // Issue #52485 "App admins can create and edit shorturls but can't view them"
190- assertElementPresent ( BootstrapLocators . errorBanner . withText ( "Table or query not found: ShortURL" ) );
189+ // Issue #52485 "App admins can create and edit shorturls but can't view them" (but now they can!)
190+ verifyShortUrlsInGrid ( shortUrl_a , targetUrl2 , shortUrl_b );
191191 });
192192
193+ verifyShortUrlsInGrid (shortUrl_a , targetUrl2 , shortUrl_b );
194+ }
195+
196+ private void verifyShortUrlsInGrid (String shortUrl_a , String targetUrl2 , String shortUrl_b )
197+ {
193198 Assertions .assertThat (ShortUrlAdminPage .beginAt (this ).getUrlsFromGrid ())
194199 .as ("short URLs" )
195200 .containsAllEntriesOf (Map .of (
You can’t perform that action at this time.
0 commit comments