Skip to content

Commit

Permalink
Try adding wait for webdriver (#10541)
Browse files Browse the repository at this point in the history
Signed-off-by: notfelineit <[email protected]>
  • Loading branch information
notfelineit authored Jun 17, 2022
1 parent 00e29d6 commit 932caf1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions go/test/endtoend/vtctldweb/vtctld_web_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ package vtctldweb
import (
"fmt"
"testing"
"time"

"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
Expand Down Expand Up @@ -132,6 +133,7 @@ func TestCreateKs(t *testing.T) {
dismiss, err := dialog.FindElement(selenium.ByID, "vt-dismiss")
require.Nil(t, err)
click(t, dismiss)
time.Sleep(5 * time.Microsecond)

ksNames := getDashboardKeyspaces(t)
assert.ElementsMatch(t, []string{"test_keyspace", "test_keyspace2", "test_keyspace3"}, ksNames)
Expand Down

0 comments on commit 932caf1

Please sign in to comment.