►
Description
In this short FE pairing session, we pair up on a task around writing capybara tests for a button.
A
All
right,
thanks
for
hopping
on
vyanik,
so
I
was
this-
is
the
mr.
I
brought
up
on
the
code
review
weekly
workshop
and
what
was
concerning
me
with
this.
Mr
now,
so
we
implemented
the
new
change
where
we're
keeping
button
component
as
a
single
state,
single
source
of
truth
for
rendering
a
button
under
different
states,
but
you're,
basically
toggling
whether
it's
displayed
or
not,
is
what
this
vanilla
javascript
code
is
doing.
A
Do
we
load
the
disabled
view
or
the
loading
view
of
it?
It's
not
great,
but
it's
better
than
the
alternative.
When
it
comes
to
these
vanilla,
js,
older
parts
of
the
code
base,
that
is.
A
B
A
So
this
is
nice,
but
usually
when
we've
done
any
kind
of
code
change
like
to
test
it
right,
we
want
to
test
the
code
change,
so
this
is
now
currently
void
of
tests,
which
isn't
great,
so
I'm
going
to
set
a
timer
period,
I'm
going
to
set
a
timer
for
five
minutes,
see
if
we
can
get
a
test
working
in
five
minutes.
Sweet.
A
A
B
A
A
B
A
B
I
don't
have
it
on
the
top
of
my
head
as
well.
We
would
we
would
need
to
to
check
the
documentation
maybe
to
to
intercept
the
the
network
request
kind
of
something
around
those
lines.
Yeah.
A
B
That
doesn't
matter
what
was
happening
so
I'm
currently
looking
into
the
mr
as
well
adding
loading
state
to
commit
changes
button.
What
was
happening
before
that
there
was
just
no
spinner
and
you've
been
waiting
for
the
page
to
reload
or
yes,
just
oh.
A
B
A
A
B
Okay,
but
for
the
free
stuff
in
the
the
commit
button
hammer
that
would
probably
we
could
just
go
for
the
for
the
property
to
be
set
yeah
so
that
that
should
be
covered
for
the
blob
bundle.
B
Just
thinking
out
loud
here
do
the
actual
need.
Well,
we
could
do
this.
We
would
need
to
trigger
the
the
click
event.
I
don't
see
a
proper
way
around
it
probably,
but
we
should
be
able
to
just
ingest
shouldn't.
We.
A
B
It's
it's
a
great
example
and
a
tricky
path
like
especially
since
this
is
a
community
contribution
we
want
to
be.
We
want
to
rather
over
explain
and
underexplain,
but
also
hopefully
not
solve
it
ourselves
like
we're
like
that's,
that's,
not
not
the
intention
to
come
up
with
a
diff
like
here's
all
the
tests.
Please
go
ahead.
A
A
Yep?
Looking
good?
Oh!
No!
Let
me
specify
this
105.,
that's
the
new
test.
I
was
going
to
propose
and
if
I
add
this
like
we'll
need
to
get
it
reviewed
by
a
test
person,
what
is
really
cool?
Oh,
it
doesn't
like
it
because
I
haven't
started
gdk.
A
Copy
bar
is
really
cool
like
so
we
already
get
under
baked
into
these
feature
specs
the
facts
that
only
one
commit
changes
button
shows
because
will
blow
up
if
it
finds
multiple
matches,
which
is
a
really
cool
feature
of
it.
So
that's
really
nice
so
like
this
would
give
us
all
the
coverage
we
need.
B
And
we
don't
have
to
care
about
the
the
aftermath
of
it,
because
the
end
will
be
set
by
a
page
reload
in
this
case,
like
we
don't
care
about
successful
request
and
then,
despite
not
showing
anymore
like
this,
is
just
a
freshly
loaded.
Okay,
yeah.
A
Because
and
that's
already
that's
already
handled
in
other
tests
sweet,
so
this
test
is
looking
will
be
great,
but
it
fails
because
copy
borrow
starts
reloading
pages
immediately.
A
B
A
A
Sure
I
guess
I
have
the
gdk
running
now.
A
B
All
right,
absolutely
absolutely
what
I
really
liked
is:
the
attendance
was
super
high,
and
that
was
people
being
engaged
in.
That
topic
is
fantastic
to
see.
A
B
I'm
in
the
meantime,
just
googling
if
there
is
a
way
to
not
submit
a
form
in
capri.
A
B
B
B
A
Yes,
execute
script,
yes,
execute
script.
A
We
can
do
that
either
one
would
work.
I
think
okay
so
shows
loader
on
commits
changes.
I'm
gonna
say
why
so
I've
been
prefixing.
My
comments
with
what
and
why
and
like
I've,
been
I've
been
prefixing.
My
comments,
I
like
that,
so
why
we
don't
want
the
form
to
actually
submit
so
that
we
can
assert
the
buttons
and.
B
Do
we
want
to
replace
the
query
selector
with
a
jquery
selector
just
to
stay
just
for
the
consistency?
No.
A
Maybe
I
wish
I
could
move
move
this
to
just
one
assertion
like
I
tried
doing
half
button
and
you
could
do
commit
changes
disabled
through,
but
I
couldn't
figure
out
how
to
in
happy
bar
I'll
get
that
selector
in
there,
because
I
really
wanted
to
get
oh,
I
really
wanted
to
get
my
that
loading
selector
in
there.
Okay,
this
loading
button.
B
B
A
I
need
to
update
my
setting
to
have
like
a
ruler,
okay,
since
this
is
how
they
call
it.
Yes,.
A
A
A
B
Yeah
well
yeah
best
to
first
prevent
default
and
then
click
otherwise
that
they'll
be
like
putting
a
handle
on
after
the
crash.
That's
not
a
good
time.
A
A
A
Expected
to
find
oh,
it's
not
checking
itself
to
have
css.
Capybara
search
element
has
class
pecking
for
this
of
the
found.
Yes,
yes,
yes,
yes,
yes
does
not.
Work
have
checked
with
being
inside
the
element.
Yes,.
A
B
A
Class,
yes,
okay,
all
right,
I
could
do
this.
We
could
do
this,
I'm
going
to
try
this
and
then
I'll
check
the
thing
that
you
said,
but
this
should
be
it.
B
A
B
Like
syntax-wise,
there
are
some
yes.
B
Melbourne
is,
and
we
are
just
on
time,
just
wow
perfect-
that
is,
that
is
pretty
pretty
amazing.
Sweet
have
a
great
weekend,
even
though
there's
some
work
involved,
but
yeah
looking
forward
to
speak
to
you
next
week
and
see
you
soon
see
ya.
Bye,.