From c7821f2f730db342a85f96823ef29ee200ee00f4 Mon Sep 17 00:00:00 2001 From: Anastasia Gradova Date: Wed, 20 Mar 2024 09:13:32 -0600 Subject: [PATCH 1/2] Edited style to wrap long emails that overflow the parent div. --- .../uswds/_uswds-theme-custom-styles.scss | 45 +++++++++++-------- 1 file changed, 26 insertions(+), 19 deletions(-) diff --git a/app/assets/sass/uswds/_uswds-theme-custom-styles.scss b/app/assets/sass/uswds/_uswds-theme-custom-styles.scss index 54bcd55c8..74441f092 100644 --- a/app/assets/sass/uswds/_uswds-theme-custom-styles.scss +++ b/app/assets/sass/uswds/_uswds-theme-custom-styles.scss @@ -168,26 +168,33 @@ td.table-empty-message { flex-wrap: wrap; justify-content: space-between; padding: 1rem; - .user-list-item { - @include at-media(desktop) { - width: calc(50% - units(1)); - margin-bottom: 1rem; - box-sizing: border-box; - } - // flex: 1 1 calc(100% - units(2)); - border: 1px solid color('gray-cool-10'); - padding: units(2); - .tick-cross-list-permissions { - margin: units(1) 0; - padding-left: units(2); - } - .hint { - display: block; - font-size: size("body", "sm"); - font-weight: normal; - } + } + + .user-list-item { + @include at-media(desktop) { + width: calc(50% - units(1)); + margin-bottom: 1rem; + box-sizing: border-box; } -} + .user-list-item-heading .live-search-relevant { + display: block; + word-wrap: break-word; + } + + border: 1px solid color('gray-cool-10'); + padding: units(2); + + .tick-cross-list-permissions { + margin: units(1) 0; + padding-left: units(2); + } + + .hint { + display: block; + font-size: size("body", "sm"); + font-weight: normal; + } + } .template-list-item-without-ancestors .template-list-folder:active, .template-list-item-without-ancestors .template-list-folder:active::before, From 1aa2501d1d1329b9eb7a7de44046c8194a34fa94 Mon Sep 17 00:00:00 2001 From: Carlo Costino Date: Mon, 25 Mar 2024 12:08:34 -0400 Subject: [PATCH 2/2] Adjust E2E test fixtures This changeset adjusts the scope of the end-to-end (E2E) test fixtures so that they behave as intended and we have truly isolated tests. We may adjust these again in the future depending on our needs, but for right now this will hopefully keep things simple for us as we start to build out an E2E test library. Thank you, @terrazoon, for flagging this! Signed-off-by: Carlo Costino --- tests/end_to_end/conftest.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/end_to_end/conftest.py b/tests/end_to_end/conftest.py index 16940d4e0..30ca363f5 100644 --- a/tests/end_to_end/conftest.py +++ b/tests/end_to_end/conftest.py @@ -68,7 +68,7 @@ def login_for_end_to_end_testing(browser): context.storage_state(path=auth_state_path) -@pytest.fixture(scope="session") +@pytest.fixture() def end_to_end_authenticated_context(browser): # Create and load a previously authenticated context for Playwright E2E # tests. @@ -82,13 +82,13 @@ def end_to_end_authenticated_context(browser): return context -@pytest.fixture(scope="session") +@pytest.fixture() def end_to_end_context(browser): context = browser.new_context() return context -@pytest.fixture(scope="session") +@pytest.fixture() def authenticated_page(end_to_end_context): # Open a new page and go to the site. page = end_to_end_context.new_page()